Home >Backend Development >PHP Tutorial >PHP6 mysql connection method description_PHP tutorial

PHP6 mysql connection method description_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:48:18898browse

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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/319791.htmlTechArticlemysqlnd is integrated in the PHP source tree. Unlike the original libmysql, mysqlnd is more closely related to the kernel. Officially said The memory usage will be saved by about 40%. The speed is also faster. By the way, if you are upgrading...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn