Salve a tutti,
ho un problema nella connessione ad un database Mysql...il tipo di errore restituito è:
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
il fatto è che io ho i driver mysql e non so per quale motivo mi da questo errore...
la connessione che ho fatto è:
Class.forName("com.mysql.jdbc.Driver");
java.sql.Connection connection = java.sql.DriverManager.getConnection("jdbc:mysql://localhost:3306/menu?user=root&password=");
java.sql.Statement statement = connection.createStatement();
java.sql.ResultSet columns = statement.executeQuery("SELECT * FROM antipasti");
while(columns.next())
{
secondo voi qual'è il problema??
mi sta facendo impazzire

Rispondi quotando