Moodle: MySQL database lokasi

From OnnoWiki
Revision as of 10:59, 19 April 2024 by Onnowpurbo (talk | contribs) (Created page with " By default, MySQL stores database files in the /var/lib/mysql directory, but this can be changed in the configuration file. The file is usually /etc/mysql/mysql.conf.d/my...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

By default, MySQL stores database files in the

/var/lib/mysql

directory, but this can be changed in the configuration file. The file is usually

/etc/mysql/mysql.conf.d/mysqld.cnf

To find the current data directory, use the command

mysql> select @@datadir

at the mysql prompt.