Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mysql table does not exist

 
Varma dandu
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi dudes,

I am trying to "select" from a mysql table called "quiz".

I can execute the query successfully from command prompt.
select * from quiz;

but using JDBC, I am getting error
Table 'mysql.quiz' doesn't exist

Can anyone tell me why it is accessing "mysql.quiz" instead of "quiz".
what should i do now to tell mysql to look into quiz instead of "mysql.quiz"

Regards
Varma Dandu
 
Varma dandu
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oops,

just found that database name given by me is "mysql".

I kept right database name and it started working now.

Cheers
Varma Dandu
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Varma,
Thanks for posting the solution for others who have the same problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic