启动mysql 报错Starting MySQL.The server quit without updating PID file (/[FAILED]l/mysql/data/ins 解决办法

我这里是关于编译mysql 出现的问题,其中解决办法之一。其他的可以自行百度在优快云里面有很多中解决办法,我这里是记录着我遇到的【我的情况是::初始化没有错误发生,my.cnf 配置文件也没有错误】

我的my.cnf 配置如下:

[mysqld]
user=mysql
port=3306
basedir=/usr/local/mysql
datadir=/usr/local/mysql/data
socket=/usr/local/mysql/mysql.sock
pid-file=/usr/local/mysql/data/mysql.pid
tmpdir=/home/tmp

# Disabling symbolic-links is recommended to prevent assorted security risks

symbolic-links=0

# Settings user and group are ignored when systemd is used.
# If you need to run mysqld under a different user or group,
# customize your systemd unit file for mariadb according to the
# instructions in http://fedoraproject.org/wiki/Systemd

skip-federated



[mysqld_safe]
log-error=/usr/local/mysql/mariadb.log
pid-file=usr/local/mysql/mariadb.pid
#log-error=/var/log/mariadb/mariadb.log
#pid-file=/var/run/mariadb/mariadb.pid

#
# include all files from the config directory
#
!includedir /etc/my.cnf.d

但是启动 就会报错,如下:

 报错内容:Starting MySQL.The server quit without updating PID file (/[FAILED]l/mysql/data/ins

 我的解决办法是 把解压出来的源 mysql-5.7.27文件 里面的 support-files 移动到 编译好的  mysql/ 目录下。

1.首先是进入到下载解压的mysql目录下,然后执行如下命令

[root@instance-ydx7dnjd mysql-5.7.27]# mv support-files/ /usr/local/mysql/

好了后,就启动mysql服务

[root@instance-ydx7dnjd usr]# service mysqld start
Starting MySQL.                                            [  OK  ]

后续我会更详细的补充。mysql 一些编译遇到的问题。大手欢迎评论补充,新手也可以提问。我会每天都回来,看到我会及时的回复您。

 

 

 

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

宋哈哈呀

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值