For new users, mysqli extension cannot be found on WIN7.

Source: Internet
Author: User
Beginner's problem: I cannot find mysqli extension for beginners under WIN7. in WIN7, an error occurs when I log on to phpMyAdmin: The & nbsp; mysqli & nbsp; extension is missing. When mysqli_connect & nbsp; is called in the PHP script, the following error occurs: Fatal & nbsp novice problem: mysqli extension cannot be found in WIN7.
Beginner php,
In WIN7, an error occurs when you log on to phpMyAdmin: the mysqli extension is missing. When mysqli_connect is called in a PHP script, an error is reported:
Fatal error: Call to undefined function mysqli_connect () in xxxx on line xxxx
In this case, the extension cannot be found, right? However, I have already opened extension = php_mysql.dll and extension = php_mysqli.dll, and added the environment variables to the directories where these two DLL are located.
It is strange that I can run successfully in the same environment in XP. What's going on? Ask.
My Environment: OS WIN7 flagship edition, PHP Version 5.2.17, Apache 2.0, MYSQL Version 5.5.29 extension php phpmyadmin extension
------ Solution --------------------
I also encountered this problem. I solved it yesterday.

Copy the libmysql. dll and php. ini files to the C:/Windows directory,
If not, copy it to the C:/Windows/System32 directory.


------ Solution --------------------
In this case, you should write in apache http. conf
SetEnv PHPRC "path/PHP5 /"
PHPINIDir "path/PHP5/php. ini"

At the same time, you should set the extension storage path in php. ini.
In this way, you do not need to copy to the win directory.

Reference:
I also encountered this problem. I solved it yesterday.

Copy the libmysql. dll and php. ini files to the C:/Windows directory,
If not, copy it to the C:/Windows/System32 directory.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.