1 <%@ page import="java.io.*, java.util.*, javax.servlet.*, java.sql.*" %>
5 String connectionURL = "jdbc:mysql://localhost/bdVols";
6 Connection connection = null;
7 Class.forName("com.mysql.jdbc.Driver").newInstance();
8 connection = DriverManager.getConnection(connectionURL, "fraggle", "$Love79!");
9 if(!connection.isClosed())
10 out.println("Successfully connected to " + connectionURL + " MySQL server using TCP/IP");
12 } catch (Exception e){
13 out.println("Unable to connect to database: " + e);