JBX adds to MySQL driver

xiaoxiao2021-03-06  99

JBX adds a MySQL driver configuration environment: 1, Windows 2000 2, JBuilder 8 Enterprise3, MySQL 4.0.154, mysql JDBC Driver 3.0.9, Download URL: http://www.mysql.com/downloads/api-jdbc- Stable.html

This article is not at this point of installation of JBuilder and MySQL, focusing on the JDBC Driver from MySQL.

First, unstoppore the compression package of MySQL JDBC Driver, in this package, it is really useful in this package is mysql-connector-java-3.0.9-stable-bin.jar, so I put it directly in C: / system / mysql -JDBC (this directory can be defined)

In jbuilder, do the following:

1. Select Tool -> Configure Libraries, select the New Library window in the Configure Libraries window, pop up the New Library Wizard window, enter mysql in the Name (you can define your own), select User Home in Location, click Add, select MySQL JDBC path: c: / system / mysql-jdbc / mysql-connector-java-3.0.9-stable-bin.jar, click OK (twice);

Second, select Project -> Project Properties -> Paths -> Required Libraries -> Click Add, select MySQL under the USER HOME to add in the first step, click OK (twice);

Third, select Tool -> Enterprise Setup -> Database Drivers -> Click Add, select MySQL under the User Home, click OK, and then mysql.config appears in the list box, click OK;

Fourth, the prompt restarts JBuilder and sets to take effect, then restart JBUILDER;

5. Select Tool -> Database Pilot, select View in the Database Pilot window -> Options -> Drivers -> Click Add

In the DRiver class: com.mysql.jdbc.driver sample URL Enter: mysql: // localhost / dataename Click OK;

6. Select File -> New in the Database Pilot window, in the New URL window, DRIVER: Select the com.mysql.jdbc.driverURURL established in the fifth step from the list: Change DatabaseName to the existing database, this example The URL is as follows: JDBC: MySQL: // localhost / test, click OK;

7. Double-click the URL in the Database Pilot window in the Database Pilot window, enter the username, password, and connection to the database.

转载请注明原文地址:https://www.9cbs.com/read-104606.html

New Post(0)