php5.6.9+apache2.4.12+mysql5.5 Manual configuration Environment Mysqli_connect is not available.

Source: Internet
Author: User
Tags rar

Apache+php has been loaded successfully. But there were some problems when we built MySQL.

Configuration in php.ini:

; Extension=php_mysql.dll
; Extension=php_mysqli.dll
Before the semicolon has been removed;

; Directory in which the loadable Extensions (modules) reside.
; Http://php.net/extension-dir
; Extension_dir = "D:/rar/webserver/php/php/ext"
; On Windows:
; Extension_dir = "D:/rar/webserver/php/php/ext"
The extension file directory has been changed to the actual installation directory;

Baidu, Google for a long time, probably mentioned are the above solutions are invalid.
Another mention of the php5.3 after the MYSQLND, ask with this relationship?
Please thank the seniors for their advice.

Reply content:

Apache+php has been loaded successfully. But there were some problems when we built MySQL.

Configuration in php.ini:

; Extension=php_mysql.dll
; Extension=php_mysqli.dll
Before the semicolon has been removed;

; Directory in which the loadable Extensions (modules) reside.
; Http://php.net/extension-dir
; Extension_dir = "D:/rar/webserver/php/php/ext"
; On Windows:
; Extension_dir = "D:/rar/webserver/php/php/ext"
The extension file directory has been changed to the actual installation directory;

Baidu, Google for a long time, probably mentioned are the above solutions are invalid.
Another mention of the php5.3 after the MYSQLND, ask with this relationship?
Please thank the seniors for their advice.

5.4 Start PHP By default with the built-in MYSQLND for Mysql/mysqli/pdo_mysql support. The mysql/mysqli extension is turned on, indicating the Extension_dir directory, After restarting the Apache service, you can see in the Phpinfo page that the mysql/mysqli extension indicates that the extension is loaded properly.

Remove the semicolon in front of the extended directory, and it mysqlnd doesn't matter. Have php_mysqli.dll you? php.ini mysqli Open all of the following extensions to the ~

Suggestions
Error_reporting (E_all);
Ini_set (' display_errors ', ' 1 ');
Then follow the error log step-by-step.

  • 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.