mysql无法启动服务,1067错误,查了两天网上资料,均未解决
3种启动方式均无法启动mysql服务:
1、navicat,报错为:Can't connect to mysql server on ‘localhost’(10038) ;
2、cmd,报错为:C:\Users\Administrator>net start mysql5_pn
MySQL5_pn 服务正在启动 .
MySQL5_pn 服务无法启动。
系统出错。
发生系统错误 1067。
进程意外终止。
C:\Users\Administrator>net start mysql
服务名无效。
请键入 NET HELPMSG 2185 以获得更多的帮助。
注:我的mysql服务名是MySQL5_pn
3、从计算机管理 的 服务 里头启动,报错为:windows无法启动mysql服务(位于本地计算机上。错误1067:进程意外终止)
其它情况说明:
1、ping localhost 能通
2、my.ini部分内容如下:
[client]
#password = your_password
port = 3306
socket = /tmp/mysql.sock
# Here follows entries for some specific programs
# The MySQL server
[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:\php\MySQL-5.0.90"
#Path to the database root
datadir="D:\php\MySQL-5.0.90\data"
# The default character set that will be used when a new schema or table is
# created and no character set is defined
default-character-set=utf8 <------
socket = /tmp/mysql.sock
[mysql]
default-character-set=utf8 <------
==========================================
[WinMySQLadmin]
Server=D:\php\MySQL-5.0.90\bin\mysqld-nt.exe
user=root
password=111111
3、.err报错文件最近内容如下:
141227 11:48:50 [Note] D:\php\MySQL-5.0.90\bin\mysqld-nt.exe: Normal shutdown
141227 11:48:51 [Note] D:\php\MySQL-5.0.90\bin\mysqld-nt.exe: Shutdown complete
141227 13:37:40 [Note] D:\php\MySQL-5.0.90\bin\mysqld-nt.exe: ready for connections.
Version: '5.0.90-community-nt' socket: '' port: 3306 MySQL Community Edition (GPL)
141230 16:21:36 [Note] D:\php\MySQL-5.0.90\bin\mysqld-nt.exe: Normal shutdown
141230 16:21:39 [Warning] D:\php\MySQL-5.0.90\bin\mysqld-nt.exe: Forcing close of thread 112 user: 'root'
141230 16:21:39 [Warning] D:\php\MySQL-5.0.90\bin\mysqld-nt.exe: Forcing close of thread 108 user: 'root'
141230 16:21:39 [Warning] D:\php\MySQL-5.0.90\bin\mysqld-nt.exe: Forcing close of thread 104 user: 'root'
141230 16:21:39 [Warning] D:\php\MySQL-5.0.90\bin\mysqld-nt.exe: Forcing close of thread 102 user: 'root'
141230 16:21:39 [Note] D:\php\MySQL-5.0.90\bin\mysqld-nt.exe: Shutdown complete
注:我曾经手动在计算机管理的服务里关闭过mysql服务,之后就无法启动了,直到现在也未解决。