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 個軟體包未被升級。