ubuntu环境下重启mysql服务报错“No directory, logging in with HOME=-”
来源:互联网 发布:外国人淘宝开店 编辑:程序博客网 时间:2024/06/05 10:11
前提:使用系统的环境
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 existsroot@zabbix-forFunction:~# ps -aux | grep mysqlmysql 1472 0.1 15.5 1752260 625824 ? Ssl Apr24 1:16 /usr/sbin/mysqldroot 10160 0.0 0.0 15952 920 pts/3 S+ 01:59 0:00 grep --color=auto mysql
这个时候使用/etc/init.d/mysql stop停止点mysql服务发现mysql的进程还是存在,这个时候需要使用如下命令来停止进程:
root@zabbix-forFunction:~# sudo service mysql stopmysql stop/waitingroot@zabbix-forFunction:~# ps -aux | grep mysqlroot 13531 0.0 0.0 15948 920 pts/3 S+ 02:15 0:00 grep --color=auto mysql
使用usermod命令来重新定位mysql所在的目录:
root@zabbix-forFunction:~# sudo usermod -d /var/lib/mysql/ mysql
然后再重新启动mysql服务:
root@zabbix-forFunction:~# sudo service mysql startmysql start/running, process 13597
0 0
- ubuntu环境下重启mysql服务报错“No directory, logging in with HOME=-”
- MySQL 5.7 No directory, logging in with HOME=/
- No directory, logging in with HOME=/
- mysql5.7.20 No directory, logging in with HOME=/
- ubuntu安装了mysql 但是编译报错 mysql.h: No such file or directory
- ubuntu安装了mysql 但是编译报错 mysql.h: No such file or directory
- ubuntu报错:No such file or directory
- Ubuntu 中安装 IDEA 报错:Warning the selected directory is not a valid tomcat home
- su: warning: cannot change directory to /home/mysql: No such file or directory
- linux安装了mysql 但是编译报错 mysql.h: No such file or directory
- Mac自带Apache搭建PHP开发环境(二)连接MySQL报错SQLSTATE[HY000] [2002] No such file or directory
- Reading files in MySQL with file_priv = no
- ubuntu下VMware Workstation报错"Could not open /dev/vmmon: No such file or directory"
- Ubuntu上运行shell脚本报错:bad interpreter: No such file or directory
- Ubuntu 下执行sh脚本 报错 :No such file or directory
- Python with MySql in Ubuntu
- Logging with MySQL
- vsftp 登录报错:500 OOPS: cannot change directory:/home/*******
- js中cookie的使用详细分析
- Evaluate Division
- jQuery页面滚动元素进入视口发生动画特效插件
- ThinkPHP的使用(四)Excel文件导出
- 写在最初
- ubuntu环境下重启mysql服务报错“No directory, logging in with HOME=-”
- struts2的action属性为空,接收不到传值
- java后台开发框架(FH-admin) -- ACE ADMIN
- Prime Factors-素数
- [Language]File Input and Output
- 欢迎使用CSDN-markdown编辑器
- HDU
- unity设置分辨率
- Python print 不换行打印