通过mysql命令查看mysql的安装路径:
# 以下两个sql任意一个可查询 select @@basedir as basePath from dual ; show variables like '%basedir%';