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
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 这几个参数就可以了。