想請教版上高手們資料庫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?>