+ 1

How to link our java to sql server?!!

Connection of database to netbeans!!

21st Nov 2020, 11:51 AM
Ezatullah Jamshidi
Ezatullah Jamshidi - avatar
2 ответов
+ 1
You need a MySQL connector jar. Download it and put it in your project folder. Then for testing you can do something like this. Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/db_name", username, password);
21st Nov 2020, 1:37 PM
Avinesh
Avinesh - avatar