Guest User

Untitled

a guest
Oct 28th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. import de.bezier.data.sql.*;
  2. import processing.serial.*;
  3.  
  4. Serial myPort; // Create object from Serial class
  5. String val; // Data received from the serial port
  6. MySQL msql; //Create MySQL Object
  7.  
  8. void setup()
  9. {
  10.  
  11. String password = "pass";
  12. String username="";
  13. String url ="jdbc:mysql://oursystem.mysql.database.azure.com:3306/projectdb?verifyServerCertificate=true&useSSL=true&requireSSL=false";
  14. msql = new MySQL(this,url,"projectdb",username,password);
  15.  
  16. if ( msql.connect() )
  17. {
  18. println("connected");
  19. }
  20. else
  21. {
  22. // connection failed !
  23. }
  24. }
  25.  
  26. SQL.connect(): Could not connect to the database ( jdbc:mysql://jdbc:mysql://oursystem.mysql.database.azure.com:3306/projectdb?verifyServerCertificate=true&useSSL=true&requireSSL=false/projectdb ).
  27.  
  28. java.sql.SQLException: The connection property 'requireSSL' only accepts values of the form: 'true', 'false', 'yes' or 'no'. The value 'false/projectdb' is not in this set.
Add Comment
Please, Sign In to add comment