You can use the following command to locate MySQL datadir : grep datadir . Jul MySQL has several ways to override configuration values. Then from the MySQL prompt, select the data directory:. How to change MySQL data directory ? Jan mysql data directory location Jul More from stackoverflow. Mar MySQL different database location Nov mount - Sharing MySQL data between Windows and Linux ? Where Is MySQL installed on My Machine?
May More from unix. Information managed by the MySQL server is stored under a directory known as the data directory. The following list briefly describes the items typically found in . For some MySQL installation methods, data directory initialization is automatic, as described in Postinstallation Setup and Testing.
For other installation methods. May This tutorial explains the details on how to perform the above three steps to move your MySQL data to a different directory. Oct This guide will help you move the root data directory of your MySQL.
Retain database is being stored. Check out these top Linux hosting services. In some cases service name, default data directory or MySQL configuration file path change. So use all the command as per you system settings. In this article we will explain how to change the default . The data directory location is controlled by the datadir variable.