想请教版上高手们数据库mysql连线问题
网页不知被我改了什么后,点开后变的不能连了
出现下列这行错误信息
Fatal error: Access denied for user 'autosharp'@'localhost' (using password:
YES) in
/home/httpd/vhosts/autosharp.com.tw/httpdocs/Connections/autosharp.php on
line 9
之后我就用Dreamweaver把autosharp.php这个档案叫出来,看line9显示什么,
程式码显示如下,但我看不懂,也google不到相关资料,所以想请各位帮帮忙,谢谢!
1<?php
2# FileName="Connection_php_mysql.htm"
3# Type="MYSQL"
4# HTTP="true"
5$hostname_autosharp = "localhost";
6$database_autosharp = "XXXXXX";
7$username_autosharp = "XXXXXX";
8$password_autosharp = "XXXXXX";
9$autosharp = mysql_pconnect($hostname_autosharp, $username_autosharp,
$password_autosharp) or trigger_error(mysql_error(),E_USER_ERROR);
10?>