Skip to content
Advertisement

Get the MySQL path

I tried googling to get the MySql path, but it was unsuccessful. Is there a unix command, where I can find the MySQL database directory path?

Advertisement

Answer

Try this query,

SHOW VARIABLES LIKE 'datadir';

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement