인터넷 APMSETUP 에서 root 암호 분실시 초기화 방법
2014.09.12 14:21
Windows 기준입니다.
1.
먼저 mysql 관련 프로세스를 모두 종료합니다.
mysql.exe , mysqld.exe, mysqlc.exe 등 모두 종료해야 합니다.
2.
실행 창에서 cmd 또는 command 로 코맨드 창을 2개 엽니다.
첫번째 창에는 아래와 같은 명령으로 암호 없이 mysql 에 접속가능하게 합니다.
mysqld --skip-grant
두 번째 창에서 root 암호를 변경해 줍니다.
c:\>mysql
mysql>mysql -uroot mysql
mysql>update user set password=password('new password') where user='root';
mysql>flush privileges;
mysql>quit
새로운 암호로 로그인을 확인해 봅니다.
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\Documents and Settings\Administrator>mysql
ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: N
O)
C:\Documents and Settings\Administrator>mysql -uroot mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 5.1.41-community MySQL Community Server (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> update user set password=password('my password') where user='root';
Query OK, 1 row affected (0.19 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql>
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Bye
C:\Documents and Settings\Administrator>
- [2015/03/23] Android Manifest doesn't exists or has incorrect root tag (4380)
댓글 0
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
8 | 엑셀 문자열 기준으로 순위 변동 표시하기 | 2011.04.21 | 8463 |
7 | 윈도우7, 관리자 모드로 사용하기(XP처럼 사용하기) | 2011.11.21 | 8362 |
6 | 웹(이메일)의 압축파일(ZIP 등), 보안 인증, 디지털 서명 관련 | 2011.12.10 | 6637 |
5 | Microsoft .NET Framework 4.0 미설치 관련 에러 | 2012.07.26 | 6892 |
4 | MSVCR110.dll , MSVCR100.dll오류 [2] | 2013.11.26 | 17708 |
» |
APMSETUP 에서 root 암호 분실시 초기화 방법
![]() | 2014.09.12 | 5692 |
2 |
블루투스 장치 추가
![]() | 2014.11.27 | 4416 |
1 | VMWARE 단축키 | 2015.03.14 | 4414 |