Skip to content

2010.06.19 06:41

mysql old_password 문제

조회 수 18583 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

1. old_password 로 변경하기

Warning : mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:Program FilesApache GroupApache2 testcreatemovie.php on line 8

이 경고는 MySQL 4.1에서 나는 경고입니다.
MySQL 4.1에서는 사용자 패스워드 저장 방식이 바뀌었기 때문에 PHP4 이전에서 쓰던 mysql_connect는 통하지 않습니다.
PHP5의 mysqli_connect를 쓰셔야 합니다.

만약 mysql_connect로 접속하시려면 MySQL 사용자의 패스워드를 예전 방식으로 변경해야 하는데, 프롬프트 상에서 다음과 같이 하시거나

mysqladmin  -u  root  -p  old-password  9999999

MySQL에 접속하여 다음과 같이 하시면 됩니다.

SET  PASSWORD  FOR  'root'@'localhost'  =  OLD_PASSWORD('9999999');





2. old_password 로 구동하기

mysql 데몬 띄울때 아래 옵션 주고 띄우면 소스 수정할 필요없음..

/usr/local/mysql/bin/mysqld_safe --old_password &





3. mysql 에 적용하기

/etc/my.cnf 파일을 열고,
[mysqld] 하단에 old_passwords = 1 내용을 추가 후, 데몬 재시작


  1. 서버에서 mysql euckr과 utf8 같이 사용하기

    Date2010.05.03 ByADMINPLAY Views12931
    Read More
  2. latin1 로 저장된 db 를 euckr 또는 utf8로 변환하는 방법

    Date2010.05.28 ByADMINPLAY Views16677
    Read More
  3. [MySQL] OPTIMIZE, TRUNCATE, 테이블복구, DB공간제한

    Date2010.05.29 Byl2zeo Views16600
    Read More
  4. MySQL errno 의미 확인

    Date2010.05.29 Byl2zeo Views16722
    Read More
  5. MySQL 오류 테이블 복원

    Date2010.05.29 Byl2zeo Views17409
    Read More
  6. mysql old_password 문제

    Date2010.06.19 ByADMINPLAY Views18583
    Read More
  7. libmysqlclient.so.15: cannot open shared object file: No such file or directory

    Date2010.07.07 ByADMINPLAY Views22971
    Read More
  8. ../depcomp: line 571: exec: g++: not found

    Date2010.11.26 ByADMINPLAY Views19621
    Read More
  9. MySQL의 호스트 블럭킹 & max_connect_errors

    Date2011.03.09 ByADMINPLAY Views17903
    Read More
  10. MySQL에서 Query Cache 사용하기

    Date2011.03.18 ByADMINPLAY Views15971
    Read More
  11. FULLTEXT 인덱스와 서치

    Date2011.04.09 ByADMINPLAY Views17572
    Read More
  12. Mysql - Query Cache

    Date2011.04.09 ByADMINPLAY Views18519
    Read More
  13. MySQL 튜닝 query cache 설정

    Date2011.04.09 ByADMINPLAY Views19527
    Read More
  14. [MySQL 5.1.4] /bin/rm: cannot remove `libtoolT': No such file or directory

    Date2012.01.16 ByADMINPLAY Views18532
    Read More
  15. MYSQL 4.0 --> 5.1 마이그레이션

    Date2012.01.16 ByADMINPLAY Views17286
    Read More
  16. [데이터베이스] [DBMS-MYSQL] "SHOW PROCESSLIST"시 state 종류 및 설명

    Date2012.01.16 ByADMINPLAY Views16036
    Read More
  17. mysql - copying to tmp table

    Date2012.01.16 ByADMINPLAY Views18245
    Read More
  18. MySQL 튜닝 값을 탐지해주는 유용한 툴

    Date2012.02.23 ByADMINPLAY Views22484
    Read More
  19. mysql 다중 서버 관리

    Date2012.12.17 ByADMINPLAY Views17402
    Read More
  20. innodb recovery

    Date2013.01.21 Byl2zeo Views11264
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234