검색결과 리스트
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO에 해당되는 글 1건
- 2012.10.28 MySQL 기본 문법(데이터베이스 보기, 사용하기)
글
[Good Comment!!, Good Discussion!!, Good Contens!!]
[ If you think that is useful, please click the finger on the bottom~^-^good~ ]
by ace-T
1) 데이터베이스 보기[ If you think that is useful, please click the finger on the bottom~^-^good~ ]
by ace-T
show databases;
2) 데이터베이스 사용
use database이름;
3) 암호 설정 하기
처음설치 시에는 root의 암호가 설정이 되지 않은 상태이다.
bin으로 이동 : d:\Spring\mysql-5.5.28-win32\mysql-5.5.28-win32\bin 로 이동하여
mysqladmin -u root -p password new-password 명령어를 쳐준다.
처음에는 암호가 없기 때문에 그냥 아무것도 없이 엔터를 쳐준다.
그런 뒤 접속을 해보자!
mysql -uroot
그러나...오류가 났다!!!
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
해결방법은...Windows방법은..아래와 같이 매개변수를 넣고 시작을 해준다.
접속 후에 DB 선택, update구문을 사용하여 root에 비밀번호를 설정하여주면 된다.
1) use mysql;
2) update user set password=password('1234') where user='root';
3) flush privileges;
비밀번호를 설정 한 뒤에 매개변수 없이 다시 재시작을 한 뒤!!
1) mysql -uroot -p
2) 비밀번호 입력
접속 되는지 테스트 해보면 된다^-^
참조 사이트 :
1) http://www.viper.pe.kr/docs/mysql_prog/mysql_syntax.html
2) http://www.gpgstudy.com/gpgiki/MySQL%EC%97%90%EC%84%9C%20%EC%82%AC%EC%9A%A9%EC%9E%90%EC%99%80%20%EB%8D%B0%EC%9D%B4%ED%84%B0%EB%B2%A0%EC%9D%B4%EC%8A%A4%20%EB%A7%8C%EB%93%A4%EA%B8%B0
오류가 나서 당황했다..ㅋㅋㅋ 찾아봐도 windows쪽은 없었다..ㅠㅜ..도움이 되었으면 좋겠네요!^-^good~
'DataBase' 카테고리의 다른 글
MySQL 기본 문법(데이터베이스 보기, 사용하기) (0) | 2012.10.28 |
---|
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO,
MySQL,
MySQL 기본 문법(데이터베이스 보기,
사용하기)
:::: facebook을 이용하시는 분들은 로그인 후 아래에 코멘트를 남겨주세요 ::::