Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ConexaoBd {
- public static void main(String[] args) throws SQLException{
- Connection conexao = DriverManager.getConnection("jdbc:mysql://localhost:3306/usuario","root","tonhaoroot");
- conexao.close();
- }
- }
- public class ConexaoBd {
- public static void main(String[] args) throws SQLException{
- Class.forName("com.mysql.jdbc.Driver"); /* Aqui registra */
- Connection conexao = DriverManager.getConnection("jdbc:mysql://localhost:3306/usuario","root","tonhaoroot");
- conexao.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement