Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.sql.Connection;
- import java.sql.DriverManager;
- import java.sql.SQLException;
- public class conexao {
- public Connection getConnection() {
- try{
- return DriverManager.getConnection("jdbc:mysql://localhost:3307/info3","root","");
- }
- catch(SQLException excecao){
- throw new RuntimeException(excecao);
- }
- }
- }
Add Comment
Please, Sign In to add comment