./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
这是命令,网上说这个参数是mysql的安装目录,难道一定要先装mysql吗
./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
这是命令,网上说这个参数是mysql的安装目录,难道一定要先装mysql吗
该参数是一个已经不推荐的参数,应当抛弃,后续版本将会移除该编译选项。
立即学习“PHP免费学习笔记(深入)”;
请使用 --with-pdo --with-pdo-mysql --with-mysqlnd 替代。
哦,再补充,这个参数是用于提供 MySQL 数据库操作的扩展,没有这些就无法连接 MySQL 数据库,鉴于你问出这种问题,一般都是需要用来做网站的,肯定要开启。
不需要安装 MySQL ,但需要安装 MySQL 的库!编译需要依赖其头文件和一些链接库。
可以选择不安装,但是如果需要使用mysql链接的时候则需后续配置
如何你不考虑是用mysql可以不安装,先安装php,在配置mysql会比较麻烦
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号