在本地搭建了一个PHP的学习环境(采用WIN7_64位旗舰版 + AppServ2.5.10搭建),软件安装完毕后测试PHP运行正常,但MYSQL数据库无法连接。查看系统服务,发现MYSQL服务未开启。手动开启则提示

Windows无法启动MYSQL服务(位于本地计算机上)。错误1067:进程间外终止。


如下图所示:

64位WIN7系统MYSQL服务1067进程意外终止的解决方法


















查看系统事件错误日志,发现:

64位WIN7系统MYSQL服务1067进程意外终止的解决方法

查看my.ini配置文件,发现路径配置为:

#Path to installation directory. All paths are usually resolved relative to this.
basedir="D:\software\AppServ/MySQL"

#Path to the database root
datadir="D:\software\AppServ/MySQL/data/"


对照上图可以发现这里的D:后的\s没了,问题应用就出在这里\s被转义了。将路径修改为:

#Path to installation directory. All paths are usually resolved relative to this.
basedir="D:\\software\AppServ/MySQL"

#Path to the database root
datadir="D:\\software\AppServ/MySQL/data/"

然后保存,重启服务,正常了!!!


总结:具体问题需具体分析,相似的情况问题所在不尽相同,应仔细观察方能找到错误所在。


转载于:https://blog.51cto.com/cnxxz/1400485

相关文章:

  • 2021-12-26
  • 2022-01-16
  • 2021-03-31
  • 2022-01-10
猜你喜欢
  • 2021-07-14
  • 2021-12-25
  • 2022-01-31
  • 2021-08-27
  • 2022-02-20
  • 2022-01-21
  • 2022-01-29
相关资源
相似解决方案