最近我的域服务器已切换到并行面板。现在我无法访问我的子文件夹文件,我。即abc_folder/index.php
。
它显示HTTP错误404.在物理路径中,它显示D:\INETPUB\VHOSTS\trytest.com\httpdocs\abc_folder\index.php
。
我试图关注these instructions,但仍然遇到同样的错误。
甚至无法访问mysql数据库: 我试图在同一目录中访问我的文件
<?php
/*online*/
$host="localhost"; // Host name
$username="trytest_abc"; // Mysql username
$password="nTnb1%31"; // Mysql password
$db_name="trytest_pqr"; // Database name
// Connect to server and select databse.
$con=mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
mysql_set_charset('utf8',$con);
//echo 'Connection to localhost successful';
?>
当我这样做时,我得到的错误是:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'trytest_abc'@'localhost' (using password: YES) in D:\INETPUB\VHOSTS\trytest.com\httpdocs\connection.php on line 10 cannot connect