PHP6 mysql connection method description_PHP tutorial

WBOY
Release: 2016-07-21 15:48:18
Original
816 people have browsed it

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...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!