Home > php教程 > php手册 > PHP6 mysql连接方式说明

PHP6 mysql连接方式说明

WBOY
Release: 2016-06-13 12:25:19
Original
789 people have browsed it

mysqlnd是在PHP源码树中集成,与原先的libmysql不同,mysqlnd与内核联系更紧密.
官方说内存占用要节省40%左右.速度也更快.
顺便提一下.如果在升级到PHP5.3以后,数据库连接时出现mysql_connect()[2002] tcp://localhost:3306 的错误提示时.
需要将localhost改成127.0.0.1,或者将连接方式由tcp改为socket.
在使用phpmyadmin这类工具时,也可以按照上述方式修改config.inc.php

 
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template