建立一个文件c:/mysql.cnf,内容是[mysqld]#set basedir to the installationpathbasedir=d:/mysqldatadir=d:/mysql/data
然后启动mysql,就可以了