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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:19:46
Original
1419 people have browsed it

以前装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>
Copy after login

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

早就有mysqlnd作为替代了啊

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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template