Operations Summary/Metabase driver for Eclipse connection to my SQL database

Source: Internet
Author: User
Tags metabase

1: Preferred you need to download the JDBC Drive (mysql-connector-java-5.1.7-bin.jar) This file

(Baidu Cloud Disk http://pan.baidu.com/s/1hs9DxS4, password c22r)

2: Once you have downloaded the above JDBC Drive, you are ready to start the operation.

First open eclipse, create a project,

My project's name is demo, right click on Project demo, then new Find Floder, then

Then paste the downloaded JDBC drive under this Lib directory, then click on the jar that you just pasted and find the build path to continue to find the add to build path,

The results appear as shown, and after the addition is complete, you can use Eclipse to connect to my SQL database.

3. Test code

 Packagetest.cn; Public classTest { Public Static FinalString dbdriver = "Org.gjt.mm.mysql.Driver";  Public Static voidMain (string[] args) {Try{class.forname (dbdriver); } Catch(ClassNotFoundException e) {//TODO auto-generated Catch blockE.printstacktrace (); }            }    }

Operations Summary/Metabase driver for Eclipse connection to my SQL database

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.