查看MySQL安装、数据目录 可以登陆 安装目录 select @@basedir as basePath from dual ; show variables like '%basedir%'; 数据目录 select @@datadir as dataPath from dual ; show variables Like '%datadir%'; 不可以登陆 [root@iZ2zeimljbbhm4nhfwkvuaZ ~]# ps -ef | grep mysql