회사 웹서버를 백업하고 복원하는 중에 sql과 관련하여 다음과 같은 에러메시지가 출력됩니다.
Warning: mysql_connect(): Access denied for user: 'test@localhost' (Using password: YES) in /var/www/html/sejong.com/board/lib/db.php on line 13
test 라는 계정의 패스워드는 test 이며 콘솔에서는 정상적으로 접속됩니다.
[root@www sejongvill.com]# /usr/local/mysql/bin/mysql -u test -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 104 to server version: 4.0.18-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.