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’
에 아래 내용추가
skip-external-locking
skip-grant-tables
systemctl restart mysqld
mysql -uroot mysql
mysql>UPDATE user SET authentication_string=PASSWORD(‘변경할비밀번호’) WHERE user=’root’
댓글
댓글 쓰기