Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/64.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/file/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将服务器切换到并行面板后,无法访问子文件夹文件和mysql数据库_Mysql_File_Panel_Subdirectory_Parallels - Fatal编程技术网

将服务器切换到并行面板后,无法访问子文件夹文件和mysql数据库

将服务器切换到并行面板后,无法访问子文件夹文件和mysql数据库,mysql,file,panel,subdirectory,parallels,Mysql,File,Panel,Subdirectory,Parallels,最近我的域服务器被切换到并行面板。现在我无法访问我的子文件夹文件,我。eabc_文件夹/index.php 它显示HTTP错误404。在物理路径中,它显示D:\INETPUB\VHOSTS\trytest.com\httpdocs\abc\u folder\index.php 我试着跟着,但还是犯了同样的错误 即使我无法访问mysql数据库: 我试图访问同一目录中的文件 <?php /*online*/ $host="localhost"; // Host name $username=

最近我的域服务器被切换到并行面板。现在我无法访问我的子文件夹文件,我。e
abc_文件夹/index.php

它显示HTTP错误404。在物理路径中,它显示
D:\INETPUB\VHOSTS\trytest.com\httpdocs\abc\u folder\index.php

我试着跟着,但还是犯了同样的错误

即使我无法访问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';

?>

这个问题不属于你。这是一个超级用户的问题(甚至可能是一个特定于软件的问题)。当你问这个问题时,用
mysqli
PDO
替换不推荐的
mysql.*
函数。你发布的代码的文件名是什么?因为它没有
第17行
,并且试图使用用户名
trytest
访问您的数据库,尽管在您发布的代码中用户名是
trytest\u abc
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