Additional Extras 1. If you do not even see the error, it is best to open the PHP bug log in php.ini, and set the error level, which will be able to solve the problem quickly when the development encountered errors
display_errors = Ondisplay_startup_errors = Onerror_reporting = -1log_errors = On
2. If you are using PHP7, then the MySQL extension has been removed, if it is PHP7 before the version can be used.
mysql_connect
Value to print out Error Reporting also opens
If you are under Linux, change localhost to 127.0.0.1.
Try writing the MySQL port to the mysql_connect parameter
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.