使用的sql语句为:
select @@basedir as basePath from dual;
查看mysql的安装路径
原文:http://www.cnblogs.com/h-g-f-s123/p/6377927.html