Review the default data directory of MySQL

Log on to the database, execute the following statement:

MariaDB [(none)]> SHOW GLOBAL VARIABLES LIKE 'datadir';
+---------------+-----------------+
| Variable_name | Value           |
+---------------+-----------------+
| datadir       | /var/lib/mysql/ |
+---------------+-----------------+
1 row in set (0.01 sec)

Guess you like

Origin www.cnblogs.com/hanxiaomeng/p/12482977.html