What is and how do I download the JDBC driver and implement it in Eclipse?
Hi all, I'm coding a chat room-program and I'm currently developing a registration/sign in form. After a little research, I noticed that in order to have multiple accounts, you need to work with databases. I knew about MySQL before, so I used that as a starting point. I later found that MySQL has different drivers/connectors for different languages (MySQL :: MySQL Downloads - MySQL connectors section). Because I'm using Java, I hit the Connector/J link and then downloaded the tar.gz zipped file choice (I'm using mac). Then, I unzipped the file and put the libs in the home/lib directory of Java, but it didn't work (I was told to do that on a forum). Now, I would really like to know how to install it from people that know what they're talking about, someone like you. :))
Also, I have no idea what MySQL is. I know that it's handling databases, but how? How does it work? Do I get a program like Eclipse or something? Please help. :confused:
How do I implement MySQL into Eclipse? :-ss
As I previousy mentioned, I put all the libs in the Java home/lib directory, does that affect my java in any way because I changed it? :confused:
Also, a link containing lots of tutorials for MySQL/JDBC and/or an example code would just be perfectly fine, even without installing instructions. :P
Thanks! :cool:
Re: What is and how do I download the JDBC driver and implement it in Eclipse?
Thread moved from What's wrong with my code.
Quote:
hen, I unzipped the file and put the libs in the home/lib directory of Java, but it didn't work (I was told to do that on a forum). Now, I would really like to know how to install it from people that know what they're talking about, someone like you
Place the jar on your classpath. See PATH and CLASSPATH (The Java™ Tutorials > Essential Classes > The Platform Environment)
Quote:
Also, I have no idea what MySQL is. I know that it's handling databases, but how? How does it work? Do I get a program like Eclipse or something? Please help
I recommend reading about SQL in general - for instance SQL - Wikipedia, the free encyclopedia There are ample tutorials online about SQL, SQL being the language and MySQL being one implementation of a database accessed via SQL. For MySQL to run, you need it installed somehwere, then, and only then, can you use the Connector J driver to access the database.
Re: What is and how do I download the JDBC driver and implement it in Eclipse?
Thanks, Ill check it out and see if it works, if it does, I'll let you know!
Re: What is and how do I download the JDBC driver and implement it in Eclipse?
It didn't really work out, can you be a little more specific about where I should put the jar? I mean, there are tons of folders within the classpath, I'll try the "jar" folder.
Re: What is and how do I download the JDBC driver and implement it in Eclipse?
You can download mysql-jdbc connector from internet then copy paste inside project folder (lib directory) and then set the path of that file inside manifest.ml file