Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/241.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
PHP与数据库(mysql)在localhost中加载太慢_Php_Xampp_Localhost - Fatal编程技术网

PHP与数据库(mysql)在localhost中加载太慢

PHP与数据库(mysql)在localhost中加载太慢,php,xampp,localhost,Php,Xampp,Localhost,[13:58:08.334]邮政http://localhost/hubcraze/@webpage/authenticate.php[HTTP/1.1 200 OK 1046ms] 获得http://localhost/hubcraze/ [HTTP/1.1 200 OK 0ms] 为什么authenticate.php(与数据库连接)的加载时间约为1000毫秒,而加载页面所用的时间不到100毫秒?将这一行添加到位于“C:\Windows\System32\drivers\etc”的主机中,确

<代码>[13:58:08.334]邮政http://localhost/hubcraze/@webpage/authenticate.php[HTTP/1.1 200 OK 1046ms] 获得http://localhost/hubcraze/ [HTTP/1.1 200 OK 0ms]


为什么authenticate.php(与数据库连接)的加载时间约为1000毫秒,而加载页面所用的时间不到100毫秒?

将这一行添加到位于“C:\Windows\System32\drivers\etc”的主机中,确保您具有编辑文件的管理员权限

127.0.0.1本地主机


在“什么?”?它是干什么的?它已经在那里了,还是很慢!