DB관련/MySQL
MySQL root passwd forget 암호 변경법
saltdoll
2011. 7. 14. 22:30
반응형
윈도우 기반:
유닉스 기반:
[root@ns /root]# safe_mysqld --skip-grant &
root 패스워드 변경
출처: http://www.apmsetup.com/database.php?tutid=138&uid=291
mysqld.exe --skip-grant
유닉스 기반:
[root@ns /root]# safe_mysqld --skip-grant &
root 패스워드 변경
mysql> use mysql;
Database changed
mysql> UPDATE user SET password=PASSWORD('변경할패스워드') 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)
Database changed
mysql> UPDATE user SET password=PASSWORD('변경할패스워드') 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)
출처: http://www.apmsetup.com/database.php?tutid=138&uid=291
반응형