mysql 시작시 cannot change directory to /nonexistent: No such file or directory 오류시 대처
컨텐츠 정보
- 1,296 조회
본문
mysql 설치 후
mysql 데몬 시작시
아래와 같은 에러가 발생한다면
su: warning: cannot change directory to /nonexistent: No such file or directory
아래와 같이 명령어를 실행해줍니다. (리눅스OS에 따라 상이)
# Ubuntu
sudo service mysql stop
sudo usermod -d /var/lib/mysql/ mysql
sudo service mysql start
# CentOS
sudo systemctl stop mysql.service
sudo usermod -d /var/lib/mysql/ mysql
sudo systemctl start mysql.service
관련자료
댓글 0개
등록된 댓글이 없습니다.