Error message:
[[Email protected] scripts]# /etc/init.d/mysqld startstarting mysql]. ERROR! The server quit without updating PID file (/application/ MYSQL/LOCALHOST.LOCALDOMAIN.PID). [[email protected] scripts]# [[email protected] scripts]# cat150506 23:12:36 mysqld_safe starting mysqld daemon with databases from / application/mysql/application/mysql/bin/mysqld: table ' mysql.plugin ' doesn ' t exist150506 23:12:36 [error] can ' T open the mysql.plugin table. please run mysql_upgrade to create it.150506 23:12:36 InnoDB: The InnoDB Memory heap is disabled150506 23:12:36 innodb: mutexes and rw_locks use gcc atomic builtins150506 23:12:36 innodb: compressed tables use zlib 1.2.3150506 23:12:36 innodb: initializing buffer pool, size = 128.0m150506 23:12:36 innodb: completed initialization of buffer pool150506 23:12:36 innodb: highest supported file format is barracuda.innodb: log scan progressed past the checkpoint lsn 48941150506 23:12:36 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 Doublewriteinnodb: buffer ... innodb: doing recovery: scanned up to log sequence number 1595675150506 23:12:36 innodb: starting an apply batch of&nBsp;log records to the database ... Innodb: progress in percents: 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 InnoDB: Apply Batch completed150506 23:12:36 innodb: waiting for the background threads to start150506 23:12:37 InnoDB: 5.5.32 started; log Sequence number 1595675150506 23:12:37 [note] server hostname (bind-address): ' 0.0.0.0 '; port: 3306150506 23:12:37 [note] - ' 0.0.0.0 ' resolves to ' 0.0.0.0 ';150506 23:12:37 [note] server socket created on ip: ' 0.0.0.0 '. 150506 23:12:37 [error] fatal error: can ' t open and lock privilege tables: table ' mysql.host ' doesn ' t exist150506 23:12:37 mysqld_safe mysqld from pid file /application/ mysql/localhost.localdomain.pid ended[[email protected] scripts]#
Workaround:
1. See if there are other MySQL databases installed and using 3306 ports
[email protected] scripts]# PS aux|grep mysql*
[[email protected] scripts]# rpm-qa|egrep MySQL
2. View/ETC/MY.CNF
[email protected] application]# cat/etc/my.cnf
3. Change the configuration file and add the following:
[ [Email protected] application]# vi/etc/my.cnf
[Mysqld]
Datadir=/application/mysql/data
4. Then restart the database:
/etc/init.d/mysqld start
5. If not, review the log file to determine the problem.
This article is from the "mysql_db" blog, make sure to keep this source http://mysqldb.blog.51cto.com/10264653/1655539
The server quit without updating PID file (/application/mysql/localhost.localdomain.pid).