进入mysql终端
mysql>show variables like ‘%datadir%‘;
出来的结果即是!
mysql> show variables like ‘%datadir%‘; +---------------+------------------------+ | Variable_name | Value | +---------------+------------------------+ | datadir | /usr/local/mysql/data/ | +---------------+------------------------+ 1 row in set (0.00 sec)
本文出自 “linux极客” 博客,请务必保留此出处http://linux200801.blog.51cto.com/10462766/1671837
原文地址:http://linux200801.blog.51cto.com/10462766/1671837