码迷,mamicode.com
首页 > 数据库 > 详细

Centos mysql安装无法启动 mysqld.sock找不到

时间:2018-04-01 11:47:33      阅读:488      评论:0      收藏:0      [点我收藏+]

标签:系统

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找不到

标签:系统

原文地址:http://blog.51cto.com/489177/2093488

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!