请教一下
debian testing
apache2.0.55+php5.0.5+mysql5.0.16
一切都是apt-get安装的,并且安装了php5-mysql,在/etc/php5/apache2/php.ini中去掉了mysql.so和gd.so的注释,现在问题是mysql_connect链接时出现错误
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'josephpei'@'localhost' (using password: YES) in /home/josephpei/website/testdb.php on line 2
fail
hit-pei:/home/josephpei/website# mysql -h 127.0.0.1 -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)