小樱 发表于 2016/4/11 03:18

shell-init: error retrieving current directory: getcwd: cannot access parent dir

# service mysqld restart
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Stopping mysqld:                                          
MySQL Daemon failed to start.
Starting mysqld:                                          
#


这是由于当前cd的目录不存在,cd到root等存在的目录在使用service 命令即可。

页: [1]
查看完整版本: shell-init: error retrieving current directory: getcwd: cannot access parent dir