VPS侦探论坛

 找回密码
 注册
查看: 3522|回复: 1

Mysql出问题了

[复制链接]
发表于 2017-1-4 15:33:30 | 显示全部楼层 |阅读模式

大家好啊,我的Mysql启动不起来了,有高手帮帮忙啊,日志文件显示:
170104 13:30:57  InnoDB: Starting shutdown...
170104 13:31:03  InnoDB: Shutdown completed; log sequence number 0 402150
170104 13:31:03 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

170104 13:31:03 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
170104 13:36:18 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
/usr/local/mysql/libexec/mysqld: Table 'mysql.plugin' doesn't exist
170104 13:36:19 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
170104 13:36:19  InnoDB: Initializing buffer pool, size = 16.0M
170104 13:36:19  InnoDB: Completed initialization of buffer pool
170104 13:36:19  InnoDB: Started; log sequence number 0 402150
170104 13:36:19 [ERROR] /usr/local/mysql/libexec/mysqld: unknown variable 'lc-messages-dir=/usr/share/mysql'
170104 13:36:19 [ERROR] Aborting

170104 13:36:19  InnoDB: Starting shutdown...
170104 13:36:25  InnoDB: Shutdown completed; log sequence number 0 402150
170104 13:36:25 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

170104 13:36:25 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
170104 13:46:21 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
/usr/local/mysql/libexec/mysqld: Table 'mysql.plugin' doesn't exist
170104 13:46:21 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
170104 13:46:21  InnoDB: Initializing buffer pool, size = 16.0M
170104 13:46:21  InnoDB: Completed initialization of buffer pool
170104 13:46:22  InnoDB: Started; log sequence number 0 402150
170104 13:46:22 [ERROR] /usr/local/mysql/libexec/mysqld: unknown variable 'lc-messages-dir=/usr/share/mysql'
170104 13:46:22 [ERROR] Aborting

170104 13:46:22  InnoDB: Starting shutdown...
170104 13:46:27  InnoDB: Shutdown completed; log sequence number 0 402150
170104 13:46:27 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

170104 13:46:27 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-1-4 17:55:43 | 显示全部楼层


估计可能通过yum或apt-get安装mysql-client之类的包装上的,会影响lnmp mysql的运行

centos的话:rpm -qa|grep mysql
debian/ubuntu的话:dpkg -l|grep mysql 看一下
就能知道具体那个包了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-16 06:05 , Processed in 0.025810 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表