在MySQL客户端输入如下命令:show global variables like "%datadir%"; 一定要在最后加上英文的分号。 转载于:https://www.cnblogs.com/tansuoxinweilai/p/10050692.html