mysql 5.7 root 비밀번호 분실

 vi /etc/my.cnf

에 아래 내용추가

skip-external-locking
skip-grant-tables

systemctl restart mysqld

mysql -uroot mysql

mysql>UPDATE user SET authentication_string=PASSWORD(‘변경할비밀번호’) WHERE user=’root’

댓글

이 블로그의 인기 게시물

LSF (GPU 스케쥴링) 명령어 사용법

CentOS 7 리부팅 없이 새 디스크 인식 (find a new disk without reboot)

python에서 hive 사용