MySQL database default database file location under Linux:
The database file defaults to: Cd/usr/share/mysql
Configuration file by default in:/ETC/MY.CNF
———————————–
Database directory:/var/lib/mysql/
Configuration file:/usr/share/mysql (mysql.server command and configuration file)
Related commands:/usr/bin (mysqladmin, mysqldump, etc.) (*mysql a Safe Boot method:/usr/bin/mysqld_safe–user=root &)
Startup script:/etc/rc.d/init.d/
First you can use the following command to find MySQL
[[email protected]/]# Find/-name "MySQL"-print
In general, MySQL is placed under the/usr/local/mysql/.
Then in its bin directory there is a mysql_config file, vi, you will see such a sentence:
Ldata= '/usr/local/mysql/var '
=========================================================================================================
Linux+php+mysql Site Migration Configuration