ubuntu环境下重启mysql服务报错“No directory, logging in with HOME=

发布时间:2024-11-29 16:26

商务报告中,'in conclusion'表示总结,'to summarize'也有类似含义 #生活技巧# #职场沟通技巧# #商务英语#

最新推荐文章于 2021-12-17 17:49:04 发布

minxihou 于 2017-04-25 14:58:55 发布

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

前提:使用系统的环境
3.13.0-24-generic

mysql的版本:5.6.33

错误描述:
首先用mysqld_safe启动报错如下:

root@zabbix-forFunction:~# mysqld_safe 170425 01:56:52 mysqld_safe Can't log to error log and syslog at the same time. Remove all --log-error configuration options for --syslog to take effect. 170425 01:56:52 mysqld_safe Logging to '/var/log/mysql/error.log'. 170425 01:56:52 mysqld_safe A mysqld process already exists root@zabbix-forFunction:~# ps -aux | grep mysql mysql 1472 0.1 15.5 1752260 625824 ? Ssl Apr24 1:16 /usr/sbin/mysqld root 10160 0.0 0.0 15952 920 pts/3 S+ 01:59 0:00 grep --color=auto mysql1234567

这个时候使用/etc/init.d/mysql stop停止点mysql服务发现mysql的进程还是存在,这个时候需要使用如下命令来停止进程:

root@zabbix-forFunction:~# sudo service mysql stop mysql stop/waiting root@zabbix-forFunction:~# ps -aux | grep mysql root 13531 0.0 0.0 15948 920 pts/3 S+ 02:15 0:00 grep --color=auto mysql1234

使用usermod命令来重新定位mysql所在的目录:

root@zabbix-forFunction:~# sudo usermod -d /var/lib/mysql/ mysql1

然后再重新启动mysql服务:

root@zabbix-forFunction:~# sudo service mysql start mysql start/running, process 1359712

网址:ubuntu环境下重启mysql服务报错“No directory, logging in with HOME= https://www.yuejiaxmz.com/news/view/314166

相关内容

启动系统服务clickhouse报错clickhouse
[Errno 2] No such file or directory
arm
dart 错误
基于物联网的室内环境监测控制系统设计
LFS经验总结
samba server中设置了新建目录权限无效的问题
MySQL——MySQL SELECT查询非分组聚合列(sql
MySql错误:mysqld: Can't create directory '/usr/local/mysql/data/
保护环境英语作文(精选22篇)

随便看看