For configuration purposes, using properties file is a good way of reusing. In this way, when the code is packaged to a jar file, users can just put the different configurations in the config.properties file, instead of recompile the application.
MySQL (mysql-connector-java-5.0.5.jar) drivers should be put into lib directory and added to the project build path. Make sure you are using the correct version of the java drivers according to your database server installation version.
Your application will read the database configuration details from the property files, so that it can easily switch from Oracle to MySQL database and vice versa, just by changing the property details.
<b>#mysql DB properties
<b>#Oracle DB Properties
Not at all
What could be better? (Optional)
Not related to my issue
Too complicated explanations
Too much information
Too old information
Do you have any other feedback about this faq ?