![]() ![]() Click on “ Add External Jar” and choose the Jar file from Computer. Right click on Project in “Package Explorer” and Build path -> Configure Build Path. Now it’s time to add JDBC library in our project. On the initial screen, you see the list of MySQL software installed on the computer. Once the process is complete, open the installer. We’ll also install ODBC drivers from the MySQL Community installer (available for download here). Inside “ src” folder in Project on “ Package Explorer” create new Java file and name it properly. Using MySQL community installer, you can view, install, update, configure, and remove various MySQL products. ![]() Open Eclipse, Create new Java project from File Menu. If you running Windows 64 bit like me then choose 64 bit Java and 64-bit Eclipse else you may face any issue (issue is debugged already. NOTE: For this tutorial and running code successfully I am going to ask you to download the latest Java from here and the Eclipse editor. To know it go to I am going to use “ cdcol” database (it is example database comes with installation) to demonstrate my code. Since this tutorial is about connecting to a MySQL database, I am not going to create a new database or that stuff, instead, I am going to use databases that come as an example in the MySQL database. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |