带有数据库(mysql)的PHP在localhost中加载太慢[关闭]

[13:58:08.334] POST http://localhost/hubcraze/@webpages/authenticate.php [HTTP/1.1 200 OK 1046ms] [13:58:09.416] GET http://localhost/hubcraze/ [HTTP/1.1 200 OK 0ms]

Why is that authenticate.php(with database connection) loads around 1000ms while before it only took less than 100ms to load the page?

Add this line to the hosts which is located at ”C:\Windows\System32\drivers\etc” make sure that you have admin privilege to edit the file.

127.0.0.1 localhost

Refer to this PHP with MySQL is Slow