mac 编译PDO扩展,必须安装MySQL数据库 才能开启PDO_MYSQL扩展吗?
phpcn_u251
phpcn_u251 2017-01-23 11:28:08
0
2
1407

mac 编译PDO扩展,必须安装MySQL 才能开启PDO吗?

phpcn_u251
phpcn_u251

reply all(2)
数据分析师

mac To compile the PDO extension, do I need to install the MySQL database to enable the PDO_MYSQL extension? -PHP Chinese website Q&A-Mac compiles the PDO extension. Do I need to install the MySQL database to enable the PDO_MYSQL extension? -PHP Chinese website Q&A

Let’s take a look and learn.

阿神

不需要。从5.4开始,mysqlnd是默认的数据库驱动,--with-pdo-mysql 不需要指定mysql的目录.

编译的时候,加上 --enable-pdo --with-pdo-mysql --enable-mysqlnd 这几个参数就可以了。


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!