johndxj 发表于 2017-1-4 15:33:30

Mysql出问题了

大家好啊,我的Mysql启动不起来了,有高手帮帮忙啊,日志文件显示:
170104 13:30:57InnoDB: Starting shutdown...
170104 13:31:03InnoDB: Shutdown completed; log sequence number 0 402150
170104 13:31:03 /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 Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
170104 13:36:19InnoDB: Initializing buffer pool, size = 16.0M
170104 13:36:19InnoDB: Completed initialization of buffer pool
170104 13:36:19InnoDB: Started; log sequence number 0 402150
170104 13:36:19 /usr/local/mysql/libexec/mysqld: unknown variable 'lc-messages-dir=/usr/share/mysql'
170104 13:36:19 Aborting

170104 13:36:19InnoDB: Starting shutdown...
170104 13:36:25InnoDB: Shutdown completed; log sequence number 0 402150
170104 13:36:25 /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 Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
170104 13:46:21InnoDB: Initializing buffer pool, size = 16.0M
170104 13:46:21InnoDB: Completed initialization of buffer pool
170104 13:46:22InnoDB: Started; log sequence number 0 402150
170104 13:46:22 /usr/local/mysql/libexec/mysqld: unknown variable 'lc-messages-dir=/usr/share/mysql'
170104 13:46:22 Aborting

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

170104 13:46:27 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

licess 发表于 2017-1-4 17:55:43

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

centos的话:rpm -qa|grep mysql
debian/ubuntu的话:dpkg -l|grep mysql 看一下
就能知道具体那个包了
页: [1]
查看完整版本: Mysql出问题了