When you ask for a Drivr, you pass in a database URL, and the DriverManager asks each Driver that it knows of whether it will accept the database URL. It look slike you're loading the DRiver correctly (this is the most common error), but the database URL and Driver are no matching up correctly. I thinl you might have a trailing slash that should not be there... Try this: Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/listas", props); (note there is no slash after the string 'listas') Dave
posted 13 years ago
another problem is in your for loop code : col<colCount should be "col <= colCount".