centos6.6 failed to start after compiling the installation mysql5.6: Starting MySQL ... error! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).

Source: Internet
Author: User

Today, when compiling and installing mysql5.6, starting MySQL appears. error! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid). It was heartbreaking at the time, before installing it well, searching for help methods on the Internet, But there is no like me, some say I did not give mysqld permission, but I gave him permission, tried a bunch of methods, finally discouraged, ready to remove MySQL reinstall, on my execution: Yum remove MySQL mysql-server mysql-libs Compat-mysql time, the progress line has been gone again, jerked to see these:

Loaded Plugins:fastestmirror, Refresh-packagekit, security
Setting up Remove Process
No Match for Argument:mysql
Loading mirror speeds from cached hostfile
* base:mirrors.163.com
* extras:centos.ustc.edu.cn
* updates:centos.ustc.edu.cn
Package (s) for MySQL available, but not installed.
No Match for Argument:mysql-server
Package (s) mysql-server available and not installed.
No Match for Argument:compat-mysql
Resolving Dependencies
--Running Transaction check
---> Package mysql-libs.x86_64 0:5.1.73-3.el6_5 'll be erased
--processing dependency:libmysqlclient.so.16 () (64bit) for package:2:postfix-2.6.6-6.el6_5.x86_64
--processing dependency:libmysqlclient.so.16 (LIBMYSQLCLIENT_16) (64bit) for package:2:postfix-2.6.6-6.el6_5. x86_64
--processing dependency:mysql-libs for package:2:postfix-2.6.6-6.el6_5.x86_64
--Running Transaction check
---> Package postfix.x86_64 2:2.6.6-6.el6_5 'll be erased
-Processing Dependency:/usr/sbin/sendmail for package:cronie-1.4.4-12.el6.x86_64
--Running Transaction check
---> Package cronie.x86_64 0:1.4.4-12.el6 'll be erased
--Processing Dependency:cronie = 1.4.4-12.el6 for package:cronie-anacron-1.4.4-12.el6.x86_64
--Running Transaction check
---> Package cronie-anacron.x86_64 0:1.4.4-12.el6 'll be erased
-Processing Dependency:/ETC/CRON.D for Package:crontabs-1.10-33.el6.noarch
-Processing Dependency:/ETC/CRON.D for package:sysstat-9.0.4-27.el6.x86_64
--Restarting Dependency Resolution with new changes.
--Running Transaction check
---> Package crontabs.noarch 0:1.10-33.el6 'll be erased
---> Package sysstat.x86_64 0:9.0.4-27.el6 'll be erased
--Finished Dependency Resolution

Dependencies resolved

============================================================================================================ ===========================
Package Arch Version Repository Size
=========================================== ============================================================================================
Removing:
Mysql-libs x86_64 5.1.73-3.el6_5 @anaconda-centos-201410241409.x86_64/6.6 4.0 M
Removing for dependencies:
Cronie x86_64 1.4.4-12.el6 @anaconda-centos-201410241409.x86_64/6.6 174 k
Cronie-anacron x86_64 1.4.4-12.el6 @ anaconda-centos-201410241409.x86_64/6.6 k
Crontabs noarch 1.10-33.el6 @anaconda-centos-201410241409.x86_64/ 6.6 2.4 k
Postfix x86_64 2:2.6.6-6.el6_5 @anaconda-centos-201410241409.x86_64/6.6 9.7 M
Sysstat x86_64 9.0.4-27.e L6 @anaconda-centos-201410241409.x86_64/6.6 825 k

Transaction Summary
=============================================================================================================== ========================
Remove 6 Package (s)

Installed size:15 M

The analysis came out to be an older version of MySQL, I put the old versions of MySQL after uninstalling, running service mysqld Start,ok,

[Email protected] ~]# service mysqld start
Starting MySQL .... success!
[Email protected] ~]# mysql-u root
Welcome to the MySQL Monitor. Commands End With; or \g.
Your MySQL Connection ID is 1
Server version:5.6.21 Source Distribution

Copyright (c), the Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of the Oracle Corporation and/or its
Affiliates. Other names trademarks of their respective
Owners.

Type ' help ', ' or ' \h ' for help. Type ' \c ' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database |
+--------------------+
| Information_schema |
| MySQL |
| Performance_schema |
| Test |
+--------------------+
4 rows in Set (0.04 sec)

Mysql> exit
Bye

Already OK, this is the situation that I met, do not know everyone in the installation time have met.

centos6.6 failed to start after compiling the installation mysql5.6: Starting MySQL ... error! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).

Related Article

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.