Configuring SQL Explorer Plugin

We will configure the SQL Explorer Plug-in & connect to the database. I will be using MySql server. It will be almost the same for all the databases. If you have not yet installed the plug-in please see my post on Installing Eclipse SQL Explorer Plug-in.

  • From the eclipse menu, select window->preferences
  • In the preference dialog box, select the SQL Explorer node.
  • Select the JDBC Drivers node.
  • Select the Driver you want to configure. We will configure MySQL Driver. So select the MySQL Driver & click edit on the right hand side.
  • Select the “extra class path” tab in the change dialog box.
  • Add the MySQL Connector jar file by clicking on add button. You can download the connectors from MySQL site. You can download it directly from here.
  • Once you added the jar file click on List Drivers on the right hand side. You can see all the loaded drivers. Select the one appropriate to you.
  • Enter the URL of your MySQL Server in the Example URL text box. Something like this “jdbc:mysql://localhost:3306/test”. Here “test” is the database name & enter the url without quotes.
  • Click ok to finish the installation of the driver. You should be able to see a green tick mark for the driver we just installed.

Now we will connect to the database.

  • From the eclipse menu, select window->Open Perspective->other.
  • In the Open Perspective dialog box select SQL Explorer & click ok.
  • Eclipse will be switched to SQL Explorer perspective.
Advertisements

Author: Phani Kumar

Developer, selftaught photographer, and a gadget lover, loves learning new things.

23 thoughts on “Configuring SQL Explorer Plugin”

  1. Krisna,
    How you’re trying to connect to mysql?
    This post will help you to connect to mysql using SQL Explorer plugin from with Eclipse IDE.

  2. finally, this is my problem:
    4) See if the mysql port is allowed to accept TCP/IP connections.
    i open my.cnf file and just insert comment on line ‘skip-networking’, then no error msg again when connect. btw, i am using mandriva 2008.

    thanks phani…

  3. The blog instructions at the top of this page worked perfectly for connecting the Eclipse SQL Explorer plugin ( in Aptana Studio ) & MySQL .

    Thanks!

  4. Ditto with Bob’s and hookdump comments above, was looking for these type of details for two days. Huge concern was possibly blowing up my ubuntu config. Some additional details/naming convention on where to put connector jar file could help. I put it in /usr/lib/eclipse/plugins/j_connect, is that OK?? I got the green check šŸ™‚

  5. Hi Tom,
    Thanks for your comments & suggestions, I will update and also try to put some screenshots.

    About the connector jar file, you can place it any where you want they need not be under the eclipse folder but all the eclipse plugins should go under eclipse plugins folder. I would suggest the best place to put the connector jars is under your home directory with a folder name as “connectors”. Since if you happen to uninstall or delete eclipse you don’t loose your connector jar files( if they are out of the eclipse folder). Later While adding the connector you can browse for the jars where you’ve placed.

    Thanks Tom & hookdump for your comments

  6. Fantastic blog! Do you have any hints for aspiring writers?
    I’m planning to start my own website soon but I’m a little lost on
    everything. Would you advise starting with a free platform like
    Wordpress or go for a paid option? There are so many options out
    there that I’m totally confused .. Any recommendations? Kudos!

    1. @Adriene Thanks. First you can start with a free platform like WordPress, get used to it, slowly build up your user base and when you’re comfortable then you can start migrating to a paid service. First identify the theme for the blog, whether you want to write technical stuff, general writing, photoblog…etc…and start writing.

      Only thing you need to keep in mind is to keep engaging with your users, keep writing slowly, steadily and keep the pace. I am not able to update my blog at all as I was busy with my personal as well as with my professional life.

      Some of my other blogs:
      http://reflectionsin50mm.wordpress.com/
      ReflectionsIn50mm(Tumblelog)
      Reflections(tumblelog)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s