Connect to MySQL in Java
July 7th, 2009
It’s been too long, I didnt get time to post anything OpenSource.
So here I am again with one simple class Database, to connect to MySQL in Java.
You can use this class in 2 ways -
- Specifying user,pwd and database name to connect
- Specifying connection ID and class will load rest of the variables from CONFIG file
Here I will post the Database class only, class to read config file and loading properties will be posted in different post.
Read more…