Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import de.bezier.data.sql.*;
- import processing.serial.*;
- Serial myPort; // Create object from Serial class
- String val; // Data received from the serial port
- MySQL msql; //Create MySQL Object
- void setup()
- {
- String password = "pass";
- String username="";
- String url ="jdbc:mysql://oursystem.mysql.database.azure.com:3306/projectdb?verifyServerCertificate=true&useSSL=true&requireSSL=false";
- msql = new MySQL(this,url,"projectdb",username,password);
- if ( msql.connect() )
- {
- println("connected");
- }
- else
- {
- // connection failed !
- }
- }
- 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 ).
- 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