nginx - 搭建lnmp环境,外接mysql,我的php应该怎么编译?
世界只因有你
世界只因有你 2017-05-16 13:01:41
0
3
427
./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那一部分怎么编译啊?

世界只因有你
世界只因有你

reply all(3)
左手右手慢动作

Since you are using Alibaba's rds, you only need to install Php's mysqli extension, and use the address provided by Alibaba when connecting to mysql. No need to install Mysql separately

给我你的怀抱

Mysql can be installed normally. PHP installs the mysql extension, `--with-mysql=/usr/local/mysql
--with-mysqli=/usr/local/mysql/bin/mysql_config`. There are many specific tutorials on the Internet. Please give me a step-by-step guide. Just follow the tutorial step by step, the writing is generally quite detailed.
Attached is the address:
http://www.jb51.net/article/9...

PHPzhong

Connecting to external MySQL does not require any modification to PHP or its extensions. Just give the correct address. The account and password database are correct

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!