
The basic JDBC java code for database connection is the same, the only difference is the database connection url and JDBC driver class name.Click the Add External JARs… button to browse and add the MySQL Connector/J JDBC driver jar files into the java project.Then click the Libraries tab on the right side.In the java project properties dialog, click the Java Build Path item on the left side.Right-click the eclipse java project, click the Properties menu item in the popup menu list.After download, unzip it to a local folder and add the jar file to your java project follow the below steps.

Do not need to Sign Up, just click the bottom link ( No thanks, just start my download ) to download the MySQL JDBC jar directly.Then it will list all the MySQL Connector/J download items, click the Download button at the end of each item row to download the MySQL Connector/J JDBC driver file.Select the Platform Independent option in the Operating System drop-down list.Select the MySQL Connector/J version in the Product Version drop-down list.Click the Archives tab at the top of the download page.Click here go to download the MySQL JDBC driver page.The student table contains 2 columns, one is the name varchar(100) and the other is the email varchar(100).Click the New link to create a table student under the database test.Click the MySQL database test in the phpMyAdmin left panel to select it.You can manage the MySQL database in this web-based GUI. Click the MySQL Admin button in the XAMPP Control panel, there will pop up a web browser open the phpMyAdmin web page.When you see the green rectangle in the service Module column, the server startup is ready. In the XAMPP Control Panel, you should start MySQL and Apache Server.After download and install XAMPP, you can start it by clicking Windows Start -> XAMPP -> XAMPP Control Panel.


