Linux-When compiling and installing php5.6, the./configure when the parameter--mysql is what, do you want it?

Source: Internet
Author: User
Tags imap mcrypt openssl
./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 an order, online said this parameter is the MySQL installation directory, must first install MySQL?

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 an order, online said this parameter is the MySQL installation directory, must first install MySQL?

This parameter is an deprecated parameter and should be discarded, and subsequent versions will remove the compilation option.

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

Oh, add, this parameter is used to provide MySQL database operation extension, without these can not connect MySQL database, because you ask this question, generally need to do the website, definitely to open.

No need to install MySQL, but need to install MySQL library! The compilation needs to rely on its header files and some link libraries.

You can choose not to install, but if you need to use a MySQL link, you will have to configure it later

How you do not consider is with MySQL can not install, first install PHP, in the configuration of MySQL will be more troublesome

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.