Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.sql.*;
- public class Main {
- public static void main(String[] args) {
- try {
- Class.forName("com.mysql.jdbc.Driver").newInstance();
- System.out.println("Sucess");
- Connection con = DriverManager.getConnection("jdbc:mysql://10.0.0.1/feedback","root","myrootpassword");
- con.setReadOnly(true);
- } catch (Exception e) {
- System.err.print("NO CONNECTION");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement