Advertisement
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 ConexaoMysql{
- public Connection getConnection() {
- try {
- return DriverManager.getConnection("jdbc:mysql://191.241.33.134:3306/loja", "root", "");
- } catch (SQLException e) {
- throw new RuntimeException(e);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement