
I manually installed MySQL on my Macbook Pro, but I didn't know where MySQL stores its data by default (it's not defined in /etc/my.cnf). You can ask this to MySQL using the following query:
SHOW VARIABLES LIKE 'datadir';
This will result in something like this:
+---------------+----------------------+ | Variable_name | VALUE | +---------------+----------------------+ | datadir | /var/lib/mysql/DATA/ | +---------------+----------------------+ 1 ROW IN SET (0.00 sec)
Add new comment