重启后, mysql 服务关闭 不能打开!

神的理想 2012-11-26 05:03:19
win7系统,每次重启电脑后, mysql 服务自动关闭 ,在services.msc中也不能打开!
提示10061.10063之类错误。。
如果重新卸载mysql重装,当时会好。但重启后老样子,服务关闭,打不开。
我都重装了N多遍了,求各位给个诊断!
...全文
1204 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
zzxgx409 2014-07-22
  • 打赏
  • 举报
回复
看看这个链接,希望能帮到你! http://jingyan.baidu.com/article/95c9d20d959d49ec4f756175.html
liqiuguo 2013-09-17
  • 打赏
  • 举报
回复
其实是my.ini 配置文件的 default-character-set=gb2312这句有问题的吧,把它删掉可以了吧
yalishanda789 2013-03-22
  • 打赏
  • 举报
回复
我刚刚也是那个问题 不过是没听服务就直接关机了 , 开始在重启mysql服务就起不来了 分享一下 首先net stop mysql 一下 就可以net start mysql
神的理想 2012-11-28
  • 打赏
  • 举报
回复
解决了,MYSQL重装后,如果heidisql不能打开mysql,重装下heidisql就行了。。。嘿嘿
神的理想 2012-11-27
  • 打赏
  • 举报
回复
现在的情况是,重装mysql后,如果MYSQL服务能重启后启动,heidisql则不能运行,进入mysql; 如果MYSQL服务不能开机启动,那么重启前heidisql可以进入mysql管理数据库,但是重启后mysql服务就不能打开了。。+_+。。
fenshucangku 2012-11-27
  • 打赏
  • 举报
回复
121127 9:02:51 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it. 121127 9:02:52 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist ----------------------------------------------------- 这两个错误信息,第一个,说运行mysql_upgrade来创建mysql.plugin table 第二个,说Table 'mysql.host' doesn't exist,可能和第一个问题相同 运行一下试试看?或者说,你什么地方的安装还是有问题?
lgstudyvc 2012-11-27
  • 打赏
  • 举报
回复
mysql加入启动项里 退出时,关闭
神的理想 2012-11-27
  • 打赏
  • 举报
回复
这是出错信息!

121126 17:26:11 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The first specified data file .\ibdata1 did not exist:
InnoDB: a new database to be created!
121126 17:26:11  InnoDB: Setting file .\ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
121126 17:26:12  InnoDB: Log file .\ib_logfile0 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile0 size to 19 MB
InnoDB: Database physically writes the file full: wait...
121126 17:26:12  InnoDB: Log file .\ib_logfile1 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile1 size to 19 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
121126 17:26:13  InnoDB: Started; log sequence number 0 0
121126 17:26:13 [Note] Event Scheduler: Loaded 0 events
121126 17:26:13 [Note] D:\MySQL\bin\mysqld: ready for connections.
Version: '5.1.53-community'  socket: ''  port: 3306  MySQL Community Server (GPL)
121126 21:37:14 [Note] D:\MySQL\bin\mysqld: Normal shutdown

121126 21:37:14 [Note] Event Scheduler: Purging the queue. 0 events
121126 21:37:14  InnoDB: Starting shutdown...
121126 21:37:16  InnoDB: Shutdown completed; log sequence number 0 16329660
121126 21:37:16 [Note] D:\MySQL\bin\mysqld: Shutdown complete

121127  9:02:51 [Note] Plugin 'FEDERATED' is disabled.
D:\MySQL\bin\mysqld: Table 'mysql.plugin' doesn't exist
121127  9:02:51 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
121127  9:02:52  InnoDB: Started; log sequence number 0 16329660
121127  9:02:52 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

傻X 2012-11-27
  • 打赏
  • 举报
回复
估计又是权限,或者杀软搞的鬼,感觉被屏蔽了的样子
zyq5945 2012-11-26
  • 打赏
  • 举报
回复
看下INI配置文件是否正确。 用管理员权限在命令行下用mysqlnt -install 安装试试
fenshucangku 2012-11-26
  • 打赏
  • 举报
回复
我也不知道。。。 顶多提供点思路,你先看看日志里面有没有有用的信息。。。
神的理想 2012-11-26
  • 打赏
  • 举报
回复
fenshucangku ,那在关机时该如何正常关闭mysql了?
fenshucangku 2012-11-26
  • 打赏
  • 举报
回复
有时服务器重启后,发现mysql无法连接,但是查看进程却有mysqld.exe,进入命令行运行net stop mysql却提示,此服务不能接受暂停或停止操作. 这种情况可能是服务器重启时,mysql没有正常结束导致的,可运行以下命令: cd c:\mysql/bin/目录 mysqladmin.exe -u root -p密码 shutdown 将mysql结束,然后再运行 net stop mysql net start mysql 启动mysql即可。 另外,看看日志都提示什么错误信息,然后再搜索一下吧

4,011

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 数据库
社区管理员
  • 数据库
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧