./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: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