MySQL client can even, PHP can not connect, ask for enlighten
It's supposed to be a card. After you shut down the remote connection for MySQL
Database clients can connect
PHP cannot connect
------to solve the idea----------------------
You need to install Php_mysql or use mysqli to operate.
Because you are mysqli, it is recommended to use MYSQLI to operate.
Reference: http://www.cnblogs.com/siqi/p/3776577.html
------to solve the idea----------------------
Not solved yet?
Look at the #1 command window:
1. Your MySQL version is 5.5
2. Your MySQL is located in the system search path
You can try to remove the MySQL path in the system environment variable path, or insert the PHP path before the MySQL path
If it is MySQL5.6 this must be done, because PHP can not take advantage of the MySQL5.6 client, need to carry the client
You're probably the same thing right now.
This is also one of the reasons why php5.5 does not recommend using MySQL extensions
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.