Advertisement
Guest User

Untitled

a guest
Sep 12th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. <databaseManager active="true">
  2. <connectionString>jdbc:mysql://localhost:3306/db_name</connectionString>
  3. <userName>root</userName>
  4. <password></password>
  5. <testSql>SELECT id FROM users LIMIT 1</testSql>
  6. </databaseManager>
  7.  
  8. <connectionString>jdbc:mysql://mysql2.000webhost.com/a5939459_data</connectionString>
  9. <userName>a5939459_user</userName>
  10. <password>censored</password>
  11. <testSql>SELECT id FROM users LIMIT 1</testSql>
  12.  
  13. Exception: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException
  14. Message: Communications link failure
  15.  
  16. The last packet sent successfully to the server was 0 milliseconds ago. The driv
  17. er has not received any packets from the server.
  18. Description: The DBManager Test SQL failed
  19. Please double check your SQL code and make sure that Database server is running.
  20.  
  21. <?php
  22. $db_username = "a5939459_user";
  23. $db_name = "a5939459_data";
  24. $db_password = "censored";
  25. $db_host = "mysql2.000webhost.com";
  26. mysql_connect($db_host,$db_username, $db_password, $db_name);
  27. mysql_select_db($db_name) or die (mysql_error());
  28. ?>
  29.  
  30. mysql2.000webhost.com. 14189 IN A 10.1.1.102
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement