Home >Backend Development >PHP Tutorial >What is the reason why php lacks mysqli extension?

What is the reason why php lacks mysqli extension?

巴扎黑
巴扎黑Original
2017-09-26 09:46:377105browse

The reasons why php lacks the mysqli extension: 1. The php_mysqli.dll extension is not enabled in the configuration file php.ini; 2. The address of extension_dir does not point to the ext directory; 3. The php_mysqli.dll file does not exist.

What is the reason why php lacks mysqli extension?

#After installing php recently, I found that the mysqli extension method is missing in phpinfo. I checked many websites and finally found the problem. Here are five possible reasons why the mysqli extension is not installed.

Possible reasons and solutions for the lack of mysqli extension in php installation

1. Check php.ini

extension=php_mysqli.dllHas it been enabled?

That is, remove the previous one.

2. Check whether the php.ini

extension_dir address points to the ext directory of the php directory

This step is the key, I am at this step.

I just set extension_dir = "e:\\www\\php54\\ext" to my own directory.

3. Check whether lib_mysql.dll has been copied to the windows directory.

This dll file has many forms, including libmysql_d.dll without underlining, so please pay attention to yourself

4. Check whether the php_mysqli.dll file exists in the ext directory of the PHP installation directory.

It is also stated on the Internet that it is best to use the zip package to decompress without file loss.

5. View PHP details Page<?php phpinfo(); ?>, check if mysql and mysqli have been started

This step is to check if you have opened mysqli

If it is not turned on, you will not be able to see the mysqli keyword on the PHP detailed page

For more related knowledge, please visit PHP Chinese website! !

The above is the detailed content of What is the reason why php lacks mysqli extension?. 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