mysql 비밀번호 분실시
- 카테고리 없음
- 2010. 7. 22.
1. mysql 서비스 정지
mysqld --skip-grant
3. mysql.exe 실행
mysql> use mysql;Database changed mysql> UPDATE user SET password=PASSWORD('some PWD') where user='root';
Query OK, 0 rows affected (0.14 sec) Rows matched: 1 Changed: 0 Warnings: 0
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.11 sec)