Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <databaseManager active="true">
- <connectionString>jdbc:mysql://localhost:3306/db_name</connectionString>
- <userName>root</userName>
- <password></password>
- <testSql>SELECT id FROM users LIMIT 1</testSql>
- </databaseManager>
- <connectionString>jdbc:mysql://mysql2.000webhost.com/a5939459_data</connectionString>
- <userName>a5939459_user</userName>
- <password>censored</password>
- <testSql>SELECT id FROM users LIMIT 1</testSql>
- Exception: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException
- Message: Communications link failure
- The last packet sent successfully to the server was 0 milliseconds ago. The driv
- er has not received any packets from the server.
- Description: The DBManager Test SQL failed
- Please double check your SQL code and make sure that Database server is running.
- <?php
- $db_username = "a5939459_user";
- $db_name = "a5939459_data";
- $db_password = "censored";
- $db_host = "mysql2.000webhost.com";
- mysql_connect($db_host,$db_username, $db_password, $db_name);
- mysql_select_db($db_name) or die (mysql_error());
- ?>
- mysql2.000webhost.com. 14189 IN A 10.1.1.102
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement