The mysql client will be connected. php cannot be connected. please kindly advise

Source: Internet
Author: User
Mysql client can be connected, php cannot be connected, please kindly advise that the database client can be connected to php and cannot be connected after the remote connection to mysql is closed through a card bar ------ solution -------------------- you need to install php_mysql & nbsp; or use mysqli for operations. Because you have installed mysqli, we recommend that you use mysqli. Reference: the www. cnblogs. co mysql client can be connected. php cannot be connected. please kindly advise
After the mysql remote connection is closed
The database client can be connected

Php cannot be connected




------ Solution ----------------------
Install php_mysql or use mysqli.
Because you have installed mysqli, we recommend that you use mysqli.
Reference: http://www.cnblogs.com/siqi/p/3776577.html
------ Solution ----------------------
Not solved yet?
From the #1 command window, we can see:
1. your MySQL version is 5.5
2. your MySQL instance is located in the system search path.
You can try to remove the MySQL PATH from the PATH of the system environment variable or insert the php PATH to the MySQL PATH.
If MySQL5.6 is required, because php cannot use the client of MySQL5.6, you must use the client that you carry.
This problem is very likely to happen to you.

This is one of the reasons why mysql extension is not recommended in php5.5.

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.