인터넷 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
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
47 | VMWARE 단축키 | 2015.03.14 | 4413 |
46 |
블루투스 장치 추가
![]() | 2014.11.27 | 4416 |
» |
APMSETUP 에서 root 암호 분실시 초기화 방법
![]() | 2014.09.12 | 5691 |
44 | MSVCR110.dll , MSVCR100.dll오류 [2] | 2013.11.26 | 17708 |
43 | Microsoft .NET Framework 4.0 미설치 관련 에러 | 2012.07.26 | 6892 |
42 | 웹(이메일)의 압축파일(ZIP 등), 보안 인증, 디지털 서명 관련 | 2011.12.10 | 6637 |
41 | 윈도우7, 관리자 모드로 사용하기(XP처럼 사용하기) | 2011.11.21 | 8362 |
40 | 엑셀 문자열 기준으로 순위 변동 표시하기 | 2011.04.21 | 8463 |
39 | 정보처리기사 필기시험 2010-9-5, 기출문제 설명,해설(21~ 30번) | 2011.01.10 | 6336 |
38 | 정보처리기사 필기시험 2010-9-5, 기출문제 설명,해설(11~ 20번) | 2011.01.10 | 7668 |
37 | 정보처리기사 필기시험 2010년 9월 5일 - 기출문제 설명,해설(1번 ~ 10번) | 2011.01.10 | 6843 |
36 | 2011년도 정보처리산업기사, 정보처리기사 시험일정 | 2011.01.10 | 6237 |
35 | I-PIN (아이핀) 발급 | 2010.11.25 | 5979 |