Guest User

Untitled

a guest
Jun 10th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. <?php
  2. $servername="localhost";
  3. $username="root";
  4. $password="whatever";
  5. $conn = new mysqli($servername, $username, $password);
  6. if (!$conn) {
  7. die("Failed : " . mysqli.connect_error());
  8. }
  9. echo "Connection Successful!";
  10. ?>
  11.  
  12. Warning: A link to the server could not be established.
  13. url=jdbc:mysql://localhost/?
  14. jdbcCompliantTruncation=false&characterSetResults=ISO885_1&characterEncoding=ISO8859_1&userServerPrepStmts=true
  15. driver=com.mysql.jdbc.Driver com.caucho.quercus.QuercusModuleException:java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
  16. Connection Successful!
Add Comment
Please, Sign In to add comment