Anonymous Asked in Cars &Transportation · 2 weeks ago

Where is the MySQL database directory?

By default, the datadir is set to /var/lib/mysql in the /etc/mysql/mysql. 21 июл. 2016 г.


How do I find where MySQL database is located?

Resolution1Open up MySQL's configuration file: less /etc/my.cnf.2Search for the term "datadir": /datadir.3If it exists, it will highlight a line that reads: datadir = [path]4You can also manually look for that line. ... 5If that line does not exist, then MySQL will default to: /var/lib/mysql.

What is the MySQL data directory?

The mysql directory corresponds to the mysql system schema, which contains information required by the MySQL server as it runs. This database contains data dictionary tables and system tables.

Related Questions

Relevance
Write us your question, the answer will be received in 24 hours