본문 바로가기
Computer/MySQL

mysql 5.7 설치 후 root password 확인.

by MC02 2017. 1. 9.

/etc/my.cnf 에서 로그 파일 경로 확인


log-error=/var/log/mysqld.log


해당 로그 파일에서 temporary password 검색.


cat /var/log/mysqld.log | grep "temporary password"



그러면..


[Note] A temporary password is generated for root@localhost: HTpk:ldnY1b,


이런식으로 나오는게 있다.



이번에 생성된 비번은 HTpk:ldnY1b,



로그인 해서 비번 바꾸면 됨.




비번은 영어대문자, 소문자, 특수문자 섞어서 8자리 이상 되어야 하는듯 싶다.


안그러면


ERROR 1819 (HY000): Your password does not satisfy the current policy requirements


이런 에러 뜸...



마지막에 FLUSH PRIVILEGES; 해주는거 잊지말고....

댓글