nginx - Set up lnmp environment and connect mysql externally. How should I compile my php?
世界只因有你
世界只因有你 2017-05-16 13:01:41
0
3
482
./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 is not installed in my environment and is connected to the Alibaba Cloud database

How to compile that part of 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