

String url = "jdbc:mysql://localhost:3306/some_db" Ĭon = DriverManager. This should import your jar file to Eclipse!Īnd now you can code. Go down the list that appears until you find Java Build Path and click Libraries and then click Add External Archives.įind the downloaded jar file called mysql-connector-java-version number.jar and choose it.

Now select ‘Next’ to proceed to the next step.

First of all, I think C++ is much more convenient. Here we just say that C++ is different from C-link mysql. The configuration of MinGW has been mentioned in C-link mysql. This article shares the specific code of C++ connecting MySQL database in Eclipse for your reference. Select ‘New’ there and choose the dynamic web project option there. C++ Connecting Mysql Database in Eclipse. Step 2: Click on the ‘File’ button, which will show you a menu. Step 1: First, we’ll start Eclipse and switch to the Java EE perspective. Right-click on your Java Project in the Package Explorer in the Eclipse workspace and go to Properties How to Launch a Dynamic Web Project in Eclipse. It is easy to use on Windows, but when I use. You always need to use it when you develop a PHP + MySQL application. And here and here are examples that showing how to do that.įirst, you need to download the MySQL Connector for Java.Īnd setting up a JDBC connection in Eclipse is much easier. XAMPP is a software package that is a bundle of apache, MySQL, and FTP packages. And you need to add JDK bin path to your System Variables. If you are developing applications using Java you need to install JDK.
