Modify the configuration file localhost for connecting to the database to 127.0.0.1
PHP5.3 and above, if it is linked to localhost, it will detect whether it is IPV4 or IPV6, so it will be slower. The solution is: when linking data, do not fill in localhost, change to 127.0.0.1