Centos mysql安装无法启动 mysqld.sock找不到
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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找不到的主要内容,如果未能解决你的问题,请参考以下文章
centOS7安装mysql服务启动失败service mysqld start
centos启动mysql报错 mysqld:unrecognized service
centos7安装mysql8时显示./mysqld是一个目录
CentOS7安装MySQL报错Failed to start mysqld.service: Unit not found解决办法
Centos6下通过官方rpm源安装mysql-community-server无法运行 [root@ ~]# service mysqld s