Home  >  Article  >  Backend Development  >  php MySQL connection test

php MySQL connection test

WBOY
WBOYOriginal
2016-07-25 08:56:18757browse
  1. MySQL Connection connection test-bbs.it-home.org
  2. or die( "Sorry, failed to connect to mysql database" );
  3. echo( "Successfully connected to mysql database" ) ;
  4. ?>
Copy code


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn