1,错误原因:修改了mysql的配置文件my.ini
2,查看错误:
my.ini配置文件的部分代码:
[mysqld]
# The TCP/IP Port the MySQL Server will listen on
port=3306
#Path to installation directory. All paths are usually resolved relative to this.
basedir="D:/MySQL/"
#Path to the database root
datadir="C:/Documents and Settings/All Users/Application Data/MySQL/MySQL Server 5.1/Data/"
看过之后就去找datadir目录(在C:/Documents and Settings/All Users/Application Data/MySQL/MySQL Server 5.1/Data/下),错误日志应该是你的主机名.err
3,解决方案:重新配置,双击\mysql\bin\MySQLIntanceConfig.exe