This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
the error should be with the class.forname line of the code. it happens when the JDBC driver needed to connected to the database is missing hth
Joined: Dec 01, 2001
I have managed to solve my initial problem on the tutrial I was working on. This was with a db connection to MS Access. I have decided to try the tutorial written by Marilyn deQueiroz. I have downloaded mysql but when I run mysql I get an error of type: D:\mysql\bin>mysql.exe ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)
Marilyn de Queiroz
Joined: Jul 22, 2000
To activate it, run the program "\mysql\bin\mysqld-nt --standalone"
if you are running Windows NT or Windows 2000. If you are running Win9x use "D:\mysql\bin>mysqld --standalone"
When I use "\mysql\bin\mysql.exe", I get the same error you describe.
Actually the page you are looking at was originally written by Paul Wheaton. [ February 05, 2002: Message edited by: Marilyn deQueiroz ]
Joined: May 10, 2001
MySQL is much beter than Access... That being said if you really dont like the command line then ther are a few GUIs available for it on the MySQL site. IF you still dont like it and want to go back to Access then what you might have forgotten is to set up a DSN on your computer for the ODBC. And then make sure you're using the JDBC-ODBC bridge. Any more questions let us know...
A forum for JDBC?!? Hey, I think here is one, so I'll move this there - actually I was going to do that at first but then for some reason I started thinking it was a beginner question, but JDBC isn't a beginner topic so here it goes...