1. 程式人生 > >Centos mysql安裝無法啟動 mysqld.sock找不到

Centos mysql安裝無法啟動 mysqld.sock找不到

系統

Linux?mysql?安裝無法啟動?/etc?下無?mysql?配置文件,
mysql?無法啟動,/var/run/mysqld/mysqld.sock?or?/temple/mysqld.sock?找不到
需確認?並手動安裝下?下列軟件包:
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
mysql-cmmon?這個軟件包是配置/etc/mysql/ 下的配置信息的
mysql?無法啟動,/var/run/mysqld/mysqld.sock?找不到:
也可能配置文件/etc/mysql/my.cnf?中:
添加?修改:
#?Remember?to?edit?/etc/mysql/debian.cnf?when?changing?the?socket?location.
[client]
port =?3306
socket =?/var/run/mysqld/mysqld.sock

mysqld.sock?則會自動生成

:~$?sudo?apt-get?install?mysql-client-5.5?mysql-server-5.5

正在讀取軟件包列表...? 完成
正在分析軟件包的依賴關系樹
正在讀取狀態信息...? 完成
將會安裝下列額外的軟件包:
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
建議安裝的軟件包:
libipc-sharedcache-perl?tinyca?mailx
下列【新】軟件包將被安裝【重點】:
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?個軟件包,新安裝了?12?個軟件包,要卸載?0?個軟件包,有?0?個軟件包未被升
級。

Centos mysql安裝無法啟動 mysqld.sock找不到