1:select @@basedir as basePath from dual (查看mysql得安装目录) 我的安装目录:C:/Program Files/MySQL/MySQL Server 5.5/,找到my.ini 加上以下两句话