If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > connecting mysql database in eclipse using jdbc

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-03-11, 13:43
zbath81 zbath81 is offline
Registered User
 
Join Date: Nov 2011
Posts: 15
connecting mysql database in eclipse using jdbc

hi

i am trying to connect my GUI (java applet) to mysql database to enable users to retrieve queries from the GUI...

inorder to establish connection between the GUI and mysql

i have downloaded....

eclipse version helios service release 2
mysql server 5.1
connector/J (used to connect mysql via jdbc driver)

i have installed and configured the jdbc driver and manage to connect to the database...ping succeeded

but the problem is i can see the schema but i cant see the tables in the database...

does anyone knows what is the problem and how to solve it...
your help is highly appreciated..

best regards
thanks
Reply With Quote
  #2 (permalink)  
Old 12-03-11, 15:39
it-iss.com it-iss.com is offline
Registered User
 
Join Date: Sep 2009
Location: San Sebastian, Spain
Posts: 620
Its sounds like you are not specifying a database in your connection properties for example:

conn =
DriverManager.getConnection("jdbc:mysql://localhost/yourdatabasename" +
"user=monty&password=greatsqldb");
__________________
Ronan Cashell
Senior Oracle/MySQL DBA
http://www.it-iss.com
Reply With Quote
  #3 (permalink)  
Old 12-03-11, 16:00
zbath81 zbath81 is offline
Registered User
 
Join Date: Nov 2011
Posts: 15
yes i did specify the mentioned details but i still have the same problem
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On