Knowledgebase

I need coding for JDBC MYSQL connection string?

I need coding for JDBC MYSQL connection string?

Use the below displayed code for JDBC MYSQL connection string. 

JDBC Connection: 

String url="jdbc:mysql://localhost:3306/myDBname?user=username&password=password"; 
con.in = DriverManager.getConnection(url); 


In the above mentioned code you must replace the 'username and password' with your username & password. 

For e.g. user=abc_db&password=abc1234"; 

The word "con.in " in the above code refers to an 'object'. 
  • 0 Users Found This Useful
Was this answer helpful?