Home >Backend Development >PHP Tutorial >php7.1 mysqli extension Client API library version version is not uniform

php7.1 mysqli extension Client API library version version is not uniform

不言
不言Original
2018-04-19 15:35:412442browse

This article mainly introduces the problem of inconsistent version of php7.1 mysqli extension Client API library version. It has certain reference value. Now I share it with everyone. Friends in need can refer to it

Calling the mysqli extension keeps reporting errors. It is found that the root cause of this problem is that the version numbers of Client API library version and Client API header version in the mysqli column in phpinfo are not consistent.

The environment is linux Nginx php7.1

Using yum to install

You need to stop php-fpm first

service php-fpm stop

Uninstall php-mysql

yum remove php71w-mysql
Then reinstall

yum install php71w-mysqlnd

Finally start php-fpm

Since everyone’s installation method is not uniform, this method Just providing you with solution ideas


The above is the detailed content of php7.1 mysqli extension Client API library version version is not uniform. For more information, please follow other related articles on the PHP Chinese website!

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