Главная » 2012 » Ноябрь » 22 » Связываем SQL и eclipce
15:57
Связываем SQL и eclipce

Setup MySQL DB in Eclipse

Contents

 [hide]


Prerequisite

1. The Data Tools Platform (DTP) is required for setup DB connection, the Eclipse IDE for Java EE Developers distribution of Eclipse we mentioned in ZK Studio Essentials has already include DTP, so in most case it is not necessary to do extra Eclipse DTP plug-in installation.

2. Download MySQL Connector/J:

http://dev.mysql.com/downloads/connector/j/

extract the zip file to a proper location.

Setup Database Connection in MySQL

  1. Open Data Source Explorer via [Window]/[Show View]/[Data Source Explorer]
  2. Если нету в списке Data Source Explorer, томеню Windows -> Show View -> Other:  появляется окно Show view со списком

    001 open DataSourceExplorer.png

  3. Right click the Database Connection folder, select [New...].
    001-1 New Database in DataSourceExplorer.png

  4. Select the Database you suppose to connect ( MySQL 5.1 as the example in this document), you can type custom name and description for mnemonic, click  Next > .
    002 select DB Type.png

  5. On next page, click the New Driver Definition icon next to the "Drivers:" listbox.
    003 new DriverDef.png

  6. On the popup window, select the Database Version in "Name/Type" tab.
    004 chose MySQL DBVer.png

    Swith to "Jar List" tab, click  Clear All  to clear the default false jar file location.
    005 clear redundant Jar.png

    then click  Add JAR/Zp... .
    006 specify MySQL connector Jar.png

    Locate the jar file inside the folder that just extracted from downloaded MySQL Connectoer/J zip file.
    007 locate MySQL connector Jar file.png

    Switch to "Properties" tab, modify the database connection setting according to your MySQL Database configruation, then click  OK .
    008 specify MySQL connection setting.png

  7. To verify if the setup is functional, click  Test Connection .
    009 test MySQL connection.png

    It should popup a Ping succeeded message, Click  OK  to continue.
    010 test MySQL connection succeed.png

  8. Press  Finish  to close the setup wizard window, And you should be able to see there's a Database icon in the Database Connections folder.
    011 MySQL DB shown in DataSourceExplorer.png

Note

  1. Firewall of the System that install Database or security setting of the Database may prevent you from connect the DB successfully.
  2. If you had specify the right MySQL Connector/J jar file before, then Step 4 & 5 can be skipped, you can directly modify the following field to match your MySQL Database configuration:
    012 modify MySQL DB connection setting.png
    then proceed the subsequent steps to finish setup.
Просмотров: 17340 | Добавил: Сусанин | Теги: SQL, EclIpS, mysql-connector-java | Рейтинг: 0.0/0
Всего комментариев: 241 2 3 »
24 rtaletfxna  
0
Ivermectin side effects tested <a href=https://gdoorx.com/>trustable stromectol online</a> stromectol side effects itching
https://gdoorx.com/ - stromectol 3 mg price

23 KyancAnync  
0
geely okavango купить <a href=http://www.geely-v-spb1.ru/models/okavango/>http://www.geely-v-spb1.ru/models/okavango/</a> .

22 mtaletwbnh  
0
clomid alcohol ovulating on clomid <a href="https://medicalvtopnews.com/">clomid testosterone replacement therapy</a> should i take clomid clomid cysts

21 jtaletgzzy  
0
prednisone walgreens <a href=https://prednimed.com/>prednisone price</a> when to stop taking prednisone before surgery

prednisone food https://prednimed.com/ - cost of prednisone 5mg tablets

20 LtproxyXw  
0
Бери надёжные решения и зарабатывай уже сегодня! https://kupit-proxy-ipv4.ru

19 EarnestMus  
0
What's up friends, its wonderful article regarding teachingand fully defined, keep it up all the time.
где купить диплом
http://wmtext.ru
http://thejackwood.com
http://sh5novosel.ru

купить диплом в клинцах

18 IsmaelSniva  
0
I'm not sure exactly why but this weblog is loading incredibly slow for me. Is anyone else having this issue or is it a problem on my end? I'll check back later on and see if the problem still exists.
купить диплом журналиста
http://monitoringntr.ru
http://freestudents.ru
http://turkishculture.ru

купить диплом в минусинске

17 LhaneCyday  
0
Marvelous, what a web site it is! This weblog presents useful information to us, keep it up.
купить диплом агронома
http://37vilok.ru
http://diplom-177.ru
http://scienceanded.ru

купить диплом в ревде

16 IsmaelSniva  
0
Wow that was strange. I just wrote an really long comment but after I clicked submit my comment didn't show up. Grrrr... well I'm not writing all that over again. Anyhow, just wanted to say superb blog!
купить диплом в бузулуке
http://musey-uglich.ru
http://scienceanded.ru
http://mml2020.ru

купить бланк диплома

15 EarnestMus  
0
Thanks for another informative blog. The place else may I get that kind of info written in such an ideal means? I've a mission that I am just now operating on, and I have been on the look out for such information.
купить диплом фитнес инструктора
http://72frs.ru
http://samogon-alko.ru
http://nti-nastavnik.ru

купить аттестат

1-10 11-20 21-24
Имя *:
Email *:
Код *: