安裝完mysql後用root不能su成mysql

現象: debian的機器用aptitude install mysql-server-5.1 後,用id mysql 可看出已經建了mysql用戶,可是用root來su mysql 不成功,/var/log/auth.log顯示: Mar 2 22:23:15 mhxy-db08 su[26669]: pam_unix(su:session): session opened for user mysql by andrew(uid=0) Mar 2 22:23:15 mhxy-db08 su[26669]: pam_unix(su:session): session closed for user mysql 解決: 修改/etc/passswd,將mysql的bash從false改成/bin/bash
相關文章
相關標籤/搜索