Fix MySQL startup times the server quit without updating PID file error (RPM)

Source: Internet
Author: User
Tags crc32 deprecated uuid

1. In general, the problem of permissions, the user and group to MySQL can be changed.

Chown-r Mysql:mysql/var/lib/mysql

2. The following error in starting the MySQL Times

[[Email protected] ~]# service Mysql.server start
starting MySQL ...... ..... ....................                       The server quit without updating PID file (/var/lib/mysql/mysqld2.clvn.com.cn.pid). Failed

Workaround

viewing log files

[Email protected] mysql]# Tail/var/log/mysqld.log
2014-05-09 22:08:10 3483 [Note] ndb:changed global value of Binlog_format from STATEMENT to MIXED
2014-05-09 22:08:46 3483 [Warning] ndb:server ID set to zero-changes logged to bin log with server ID zero would be Logg Ed with another server ID by slave mysqlds
2014-05-09 22:08:46 3483 [Note] starting Cluster Binlog Thread
2014-05-09 22:08:46 3483 [Warning] No existing UUID have been found, so we assume it's the first time that this Ser Ver has been started. Generating a new uuid:6f59371c-d783-11e3-ac36-000c2971b28f.
2014-05-09 22:08:46 3483 [Note] Server hostname (bind-address): ' * '; port:3306
2014-05-09 22:08:46 3483 [Note] IPv6 is available.
2014-05-09 22:08:46 3483 [note]-':: ' resolves to ':: ';
2014-05-09 22:08:46 3483 [Note] Server socket created on IP: ':: '.
2014-05-22:08:46 3483 [ERROR] Fatal Error:can ' t open and Lock Privilege tables:table ' mysql.user ' doesn ' t exist
140509 22:08:46 mysqld_safe mysqld from PID File/var/lib/mysql/mysqld1.clvn.com.cn.pid ended

Workaround

[Email protected] mysql]# scripts/mysql_install_db--user=mysql
Installing MySQL system tables ... 2014-05-09 22:51:12 0 [Warning] TIMESTAMP with implicit the DEFAULT value is deprecated. --explicit_defaults_for_timestamp server option (see documentation for more details).
2014-05-09 22:51:12 3564 [Note] innodb:using Atomics to ref count buffer pool pages
2014-05-09 22:51:12 3564 [Note] innodb:the InnoDB memory heap is disabled
2014-05-09 22:51:12 3564 [Note] innodb:mutexes and rw_locks use GCC atomic builtins
2014-05-09 22:51:12 3564 [Note] innodb:compressed tables use zlib 1.2.3
2014-05-09 22:51:12 3564 [Note] innodb:using Linux native AIO
2014-05-09 22:51:12 3564 [Note] innodb:using CPU CRC32 Instructions
2014-05-09 22:51:12 3564 [Note] innodb:initializing buffer pool, size = 128.0M
2014-05-09 22:51:12 3564 [Note] innodb:completed initialization of buffer pool
2014-05-09 22:51:12 3564 [Note] innodb:highest supported file format is Barracuda.
2014-05-09 22:51:12 3564 [Note] innodb:128 rollback segment (s) is active.
2014-05-09 22:51:12 3564 [Note] innodb:waiting for purge to start
2014-05-09 22:51:13 3564 [Note] innodb:5.6.17 started; Log sequence Number 1626007
2014-05-09 22:51:13 3564 [Note] Binlog End
2014-05-09 22:51:13 3564 [Note] innodb:fts optimize thread exiting.
2014-05-09 22:51:13 3564 [Note] innodb:starting shutdown ...
2014-05-09 22:51:14 3564 [Note] Innodb:shutdown completed; Log sequence Number 1626017
Ok

Filling Help Tables ... 2014-05-09 22:51:14 0 [Warning] TIMESTAMP with implicit the DEFAULT value is deprecated. --explicit_defaults_for_timestamp server option (see documentation for more details).
2014-05-09 22:51:14 3588 [Note] innodb:using Atomics to ref count buffer pool pages
2014-05-09 22:51:14 3588 [Note] innodb:the InnoDB memory heap is disabled
2014-05-09 22:51:14 3588 [Note] innodb:mutexes and rw_locks use GCC atomic builtins
2014-05-09 22:51:14 3588 [Note] innodb:compressed tables use zlib 1.2.3
2014-05-09 22:51:14 3588 [Note] innodb:using Linux native AIO
2014-05-09 22:51:14 3588 [Note] innodb:using CPU CRC32 Instructions
2014-05-09 22:51:14 3588 [Note] innodb:initializing buffer pool, size = 128.0M
2014-05-09 22:51:14 3588 [Note] innodb:completed initialization of buffer pool
2014-05-09 22:51:14 3588 [Note] innodb:highest supported file format is Barracuda.
2014-05-09 22:51:14 3588 [Note] innodb:128 rollback segment (s) is active.
2014-05-09 22:51:15 3588 [Note] innodb:waiting for purge to start
2014-05-09 22:51:15 3588 [Note] innodb:5.6.17 started; Log sequence Number 1626017
2014-05-09 22:51:15 3588 [Note] Binlog End
2014-05-09 22:51:15 3588 [Note] innodb:fts optimize thread exiting.
2014-05-09 22:51:15 3588 [Note] innodb:starting shutdown ...
2014-05-09 22:51:16 3588 [Note] Innodb:shutdown completed; Log sequence Number 1626027
Ok

To start mysqld at boot time with to copy
Support-files/mysql.server to the right place for your system

REMEMBER to SET A PASSWORD for the MySQL root USER!
To does so, start the server, then issue the following commands:

./bin/mysqladmin-u root password ' new-password '
./bin/mysqladmin-u root-h mysqld1.clvn.com.cn password ' new-password '

Alternatively you can run:

./bin/mysql_secure_installation

Which would also give you the option of removing the test
Databases and anonymous user created by default. This is
Strongly recommended for production servers.

See the Manual for more instructions.

You can start the MySQL daemon with:

Cd. ;./bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl

CD mysql-test; Perl mysql-test-run.pl

Problems at http://bugs.mysql.com/

The latest information about MySQL was available on the Web at

Http://www.mysql.com

Support for MySQL by buying support/licenses at http://shop.mysql.com

Warning: found existing config file ./my.cnf on the system.
Because this file might be in use, it was not replaced,
but was used in bootstrap  (unless you used --defaults-file)
and  when you later start the server.
The new default config file was created as ./my-new.cnf,
please  compare it with your file and take the changes you  Need.

[Email protected] mysql]#./bin/mysqld_safe &
[1] 3612
[Email protected] mysql]# 140509 22:51:29 mysqld_safe Logging to '/usr/local/mysql/data/mysqld1.clvn.com.cn.err '.
140509 22:51:29 Mysqld_safe starting mysqld daemon with databases From/usr/local/mysql/data

View status information for Mysql.server

[[Email protected] ~]# service Mysql.server start
Starting MySQL. Determine

Reference: http://ovcer.blog.51cto.com/1145188/1409059

Fix MySQL startup times the server quit without updating PID file error (RPM)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.