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.