How to test the success of PHP connection to MYSQL
This article mainly introduces how to test whether the PHP connection MYSQL is successful or not, the article is very detailed, has a certain reference value, interested friends must read it!
The method is simple:
Save the following code as test.php and execute it in the web directory.
The copy code is as follows:
The parameters of the mysql_connect () function are: mysql server name or IP, mysql user name, mysql user password.
The above is all the contents of the article "how to test the success of PHP connection to MYSQL". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!