Dowemo
0 0 0 0

[root@dbserver ~]# su - mysqlLast login: Thu Aug 3117:20:03 CST 2017on pts/1su: warning: cannot change directory to/home/mysql: No such fileor directory
-bash-4.2$ exit登出

Solution method

[root@dbserver ~]# cd home-bash:cd:home:No such file or directory
[root@dbserver ~]# cd/home[root@dbserver home]# lsoracle xiniu
[root@dbserver home]# mkdir/home/mysql[root@dbserver home]# chmod 755/home/mysql[root@dbserver home]# lsmysql oracle xiniu
[root@dbserver home]# cp -a/etc/skel/./home/mysql/[root@dbserver home]# su - mysqlLastlogin:ThuAug3117:20:58CST2017 on pts/1[mysql@dbserver ~]$ id
uid=987(mysql) gid=1003(mysql) 组=1003(mysql) 环境=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[mysql@dbserver ~]$ su - root
密码:su: 鉴定故障
[mysql@dbserver ~]$ su - root
密码:
上一次登录:四 83117:20:52CST2017196.160.1.31pts/1 上
最后一次失败的登录:四 83117:26:05CST2017pts/1 上
最有一次成功登录后有 1 次失败的登录尝试。
[root@dbserver ~]# chown mysql:oinstall/home/mysql/-R[root@dbserver ~]# 



Copyright © 2011 Dowemo All rights reserved.    Creative Commons   AboutUs