CentOS Cloud Server で yum update を実行した後、MySQL が起動しません。
ウェブでエラーを検索した後:
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
find と grep でファイル mysql.sock を検索しようとしましたが、成功しませんでした。セーフモードで起動しようとした後のmysqlのエラーログは次のとおりです。
130529 13:51:18 InnoDB: Starting shutdown...
130529 13:51:23 InnoDB: Shutdown completed; log sequence number 0 43655
130529 13:51:23 [Note]
130529 13:51:23 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
130529 14:15:52 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
130529 14:15:52 [ERROR] Error message file '/usr/share/mysql/english/errmsg.sys' had only 481 error messages,
but it should contain at least 641 error messages.
Check that the above file is the right version for this program!
130529 14:15:52 [Note] Plugin 'FEDERATED' is disabled.
/usr/libexec/mysqld: Unknown error 1146
130529 14:15:52 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
130529 14:15:52 InnoDB: Initializing buffer pool, size = 8.0M
130529 14:15:52 InnoDB: Completed initialization of buffer pool
130529 14:15:53 InnoDB: Started; log sequence number 0 43655
130529 14:15:53 [ERROR] Aborting
130529 14:15:53 InnoDB: Starting shutdown...
130529 14:15:58 InnoDB: Shutdown completed; log sequence number 0 43655
130529 14:15:58 [Note]
130529 14:15:58 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
皆さんが私を助けてくれることを願っています。必要な情報を提供できます。私を助ける方法を教えてください。
編集: mysql と chmod のいずれかのファイルを chwon しようとしました。
私に否定的なフラグを立てる前に、私が書いたものを見てください。私はすでに MYSQL_UPGRADE を使用しており、エラーはソケットについても同じです。
[root@cpro5022mysql]# mysql_upgrade
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck with default connection arguments
mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed