MySQL想要启动时出现此错误:
启动MySQL ..服务器退出而不更新PID文件
及其MySQL错误日志:
151126 14:34:09 [Note] /usr/sbin/mysqld (mysqld 5.5.44) starting as process 12976 ... 151126 14:34:09 [Note] Plugin 'FEDERATED' is disabled. /usr/sbin/mysqld: Table 'mysql.plugin' doesn't exist 151126 14:34:09 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it. 151126 14:34:09 InnoDB: The InnoDB memory heap is disabled 151126 14:34:09 InnoDB: Mutexes and rw_locks use GCC atomic builtins 151126 14:34:09 InnoDB: Compressed tables use zlib 1.2.3 151126 14:34:09 InnoDB: Using Linux native AIO 151126 14:34:09 InnoDB: Initializing buffer pool, size = 128.0M 151126 14:34:09 InnoDB: Completed initialization of buffer pool 151126 14:34:09 InnoDB: highest supported file format is Barracuda. InnoDB: The log sequence number in ibdata files does not match InnoDB: the log sequence number in the ib_logfiles! 151126 14:34:09 InnoDB: Database was not shut down normally! InnoDB: Starting crash recovery. InnoDB: Reading tablespace information from the .ibd files... InnoDB: Restoring possible half-written data pages from the doublewrite InnoDB: buffer... 151126 14:34:09 InnoDB: Waiting for the background threads to start 151126 14:34:10 InnoDB: 5.5.44 started; log sequence number 1595675 151126 14:34:10 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306 151126 14:34:10 [Note] - '0.0.0.0' resolves to '0.0.0.0'; 151126 14:34:10 [Note] Server socket created on IP: '0.0.0.0'. 151126 14:34:10 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist 151126 14:34:10 mysqld_safe mysqld from pid file /var/lib/mysql/vps.hostdl.com.pid ended
CentOS 6和MySQL 5.5。请帮我。感谢。
答案 0 :(得分:1)
我认为您的错误告诉您该怎么做
151126 14:34:09 [ERROR]无法打开mysql.plugin表。请运行mysql_upgrade来创建它。