Centosmysql installation fails to start mysqld. sock cannot be found

Source: Internet
Author: User
Linuxmysql installation fails to start etc without mysql configuration file, mysql cannot start, varrunmysqldmysqld. sock cannot find

Linux mysql installation fails to start./etc does not have a mysql configuration file,

Mysql cannot be started,/var/run/mysqld. sock or/temple/mysqld. sock cannot be found

Confirm and manually install the following software packages:

Libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18
Libnet-daemon-perl libplrpc-perl libterm-readkey-perl mysql-client-5.5
Mysql-client-core-5.5 mysql-common mysql-server-5.5 mysql-server-core-5.5

The mysql-cmon package configures the configuration information under/etc/mysql /.

Mysql cannot be started./var/run/mysqld. sock cannot be found:

It may also be in the/etc/mysql/my. cnf configuration file:

Add and modify:

# Remember to edit/etc/mysql/debian. cnf when changing the socket location.
[Client]
Port = 3306
Socket =/var/run/mysqld. sock


Mysqld. sock is automatically generated



:~ $ Sudo apt-get install mysql-client-5.5 mysql-server-5.5

Reading the package list... complete
Analyzing the dependency tree of the software package
Reading status information... complete
The following additional software packages will be installed:
Libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18
Libnet-daemon-perl libplrpc-perl libterm-readkey-perl mysql-client-core-5.5
Mysql-common mysql-server-core-5.5
Recommended software packages:
Libipc-sharedcache-perl tinyca mailx
The following [new] software packages will be installed [key ]:
Libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18
Libnet-daemon-perl libplrpc-perl libterm-readkey-perl mysql-client-5.5
Mysql-client-core-5.5 mysql-common mysql-server-5.5 mysql-server-core-5.5
0 software packages are upgraded, 12 new software packages are installed, 0 software packages are to be uninstalled, and 0 software packages are not upgraded.


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.