2016. 10. 11. 16:54 Mysql

Mysql 암호 초기화


- Mysql 암호 분실시 재설정

 

1. /etc/init.d/mysql stop
2. ps -ef |grep mysql
3. mysqld_safe --skip-grant-tables &
4  mysql -u root -p
   Enter password:   (여기서 그냥 엔터 쳐야함. 초기화되었기 때문에)
5. mysql> use mysql
6. mysql> update user set password=PASSWORD("암호") where user='root';
7. mysql> flush privileges;
8. mysql> exit
9. /etc/init.d/mysql start

Posted by pat98

02-01 23:31
Flag Counter
Yesterday
Today
Total

글 보관함

최근에 올라온 글

달력

 « |  » 2025.2
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28

최근에 달린 댓글