搭建lnmp环境,外接mysql,我的php应该怎么编译?

./configure --enable-opcache --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-mbstring=all --with-pdo-mysql --enable-sockets --enable-mbstring --enable-fpm --with-curl --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --enable-xml --with-gd --with-mcrypt --with-libxml-dir=/usr --enable-xml --with-openssl --with-iconv=/usr/local/iconv

在我的环境中没有安装mysql,外接阿里云数据库

mysql那一部分怎么编译啊?


慕田峪4524236
浏览 712回答 2
2回答

慕无忌1623718

既然使用阿里的rds,只需要安装Php的mysqli扩展,连接mysql的时候使用阿里提供的地址就可以了。不需要单独安装Mysql了
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

MySQL