Home >Backend Development >PHP Tutorial >PHP6 mysql connection method description_PHP tutorial
mysqlnd is integrated in the PHP source tree. Different from the original libmysql, mysqlnd is more closely connected with the kernel.
Officially said that the memory usage will be saved by about 40%. The speed is also faster.
By the way, if you are upgrading After PHP5.3, the error message mysql_connect()[2002] tcp://localhost:3306 appears when connecting to the database.
You need to change localhost to 127.0.0.1, or change the connection method from tcp to socket.
When using tools such as phpmyadmin, you can also modify config.inc.php as mentioned above