Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void iniciaConexao() throws SQLException {
- try {
- Class.forName("com.mysql.jdbc.Driver");
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- }
- conexao = DriverManager.getConnection("jdbc:mysql://sql10.freemysqlhosting.net:3306/NOME DO BD","NOME USUARIO", "SENHA");
- }
Add Comment
Please, Sign In to add comment