Home >Backend Development >PHP Tutorial >linux - 在本机编译php的mysqli扩展时,如果本机没装mysql的话,怎么安装?

linux - 在本机编译php的mysqli扩展时,如果本机没装mysql的话,怎么安装?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 20:19:461422browse

以前装mysqli扩展,本机都装有mysql,所以--with-mysql的时候都有路径,但现在本机没装mysql,此项如果不配安装失败,一般大神们怎么解决?毕竟现在大部分机子都跟DB是隔离的,装mysql没必要

回复内容:

以前装mysqli扩展,本机都装有mysql,所以--with-mysql的时候都有路径,但现在本机没装mysql,此项如果不配安装失败,一般大神们怎么解决?毕竟现在大部分机子都跟DB是隔离的,装mysql没必要

<code>--with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd</code>

装mysql不是为了使用mysql,而是获取mysql的头文件用于编译,可以直接下载一份mysql源码解压,然后配置 --with-mysql=源码目录

早就有mysqlnd作为替代了啊

Statement:
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