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
解决MySQL启动错误
本文介绍了一个常见的MySQL启动问题,即由于my.ini配置文件修改导致的服务无法启动。文章提供了my.ini中涉及的关键配置项示例,并给出了查找错误日志的具体路径以及推荐的解决方案。
5894

被折叠的 条评论
为什么被折叠?



