Home > Backend Development > PHP Tutorial > linux - When compiling and installing php5.6, when ./configure, what is the parameter --mysql for? Is it necessary?

linux - When compiling and installing php5.6, when ./configure, what is the parameter --mysql for? Is it necessary?

WBOY
Release: 2016-08-04 09:21:31
Original
1093 people have browsed it

./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --enable-pcntl --enable-mysqlnd --enable -opcache --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --enable-zip --enable-ftp --enable-soap --enable-xml --enable -mbstring --disable-rpath --disable-debug --disable-fileinfo --with-mysql --with-mysqli --with-pdo-mysql --with-pcre-regex --with-iconv --with- zlib --with-mcrypt --with-gd --with-openssl --with-mhash --with-xmlrpc --with-curl --with-imap-ssl

This is a command. It is said on the Internet that this parameter is the installation directory of mysql. Do I have to install mysql first?

Reply content:

./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --enable-pcntl --enable-mysqlnd --enable -opcache --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --enable-zip --enable-ftp --enable-soap --enable-xml --enable -mbstring --disable-rpath --disable-debug --disable-fileinfo --with-mysql --with-mysqli --with-pdo-mysql --with-pcre-regex --with-iconv --with- zlib --with-mcrypt --with-gd --with-openssl --with-mhash --with-xmlrpc --with-curl --with-imap-ssl

This is a command. It is said on the Internet that this parameter is the installation directory of mysql. Do I have to install mysql first?

This parameter is a deprecated parameter and should be discarded. This compilation option will be removed in subsequent versions.

Please use --with-pdo --with-pdo-mysql --with-mysqlnd instead.

Oh, to add, this parameter is used to provide extensions for MySQL database operations. Without these, the MySQL database cannot be connected. Since you asked this question, it is generally needed to build a website, so it must be turned on.

No need to install MySQL, but you need to install the MySQL library! Compilation requires its header files and some link libraries.

You can choose not to install it, but if you need to use mysql link, you need to configure it later

If you don’t consider using mysql, you don’t need to install it. Install php first. It will be more troublesome to configure mysql

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template