mysql 操作

mysqladmin -u root -p variables
回车后出来一个大表,找到datadir这一行,后边的值就是数据库所在的路径了。 
原文地址:https://www.cnblogs.com/lddhbu/p/2615688.html