+ 1
How to link our java to sql server?!!
Connection of database to netbeans!!
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);