Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

#1046 - No Database Selected in MySQL

Status
Not open for further replies.

VitoCorleone

Programmer
Jun 22, 2004
28
GB
Why do i get this error when i query my database tables in MYPHPadmin?

#1046 - No Database Selected

I cannot view any of the data in the tables in myphpadmin only Mysql Console
 
You need to select a database first:
[tt]
USE mydbname;
[/tt]
Alternatively, qualify all your table names:
[tt]
SELECT * FROM mydbname.mytblname;
[/tt]
 
Yes, when using the SQL console i can see all the data and tables, but not in phpmyadmin? i could before
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top