Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
|
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 11th, 2006, 10:36 AM
Registered User
 
Join Date: Apr 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default ERROR 1146: Table 'testdb.1' doesn't exist

Hi, i just upgrade to MySQL 5.0, but everytime i run the select statement, this error message always come out after result,
"[root@LOCALHOST:3306] ERROR 1146: Table 'testdb.1' doesn't exist", it's very annoying...
Any help out there ?? Thanks a lot.

 
Old April 12th, 2006, 02:15 AM
Registered User
 
Join Date: Apr 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi!!

Check whether the table exists there, as the error code suggest that the requested table 1 doesn't exists..

Error: 1146 SQLSTATE: 42S02 (ER_NO_SUCH_TABLE)
Message: Table '%s.%s' doesn't exist


-------
Thanks,
Umesh
 
Old April 13th, 2006, 04:40 AM
Registered User
 
Join Date: Apr 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks.
The tables do actually exists.
The Select Statement return correct result.
BUT the error message still come out...

 
Old April 20th, 2006, 03:54 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Default

obviously the table doesn't exist.

If I was you I will go on phpmyadmin and check the table name.
 
Old April 21st, 2006, 10:50 PM
Registered User
 
Join Date: Apr 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the reply.
FYI, I am using ASP with MySQL5 running under XP Pro.
I am using Control Center to manupulate my database.
When i execute a Select statement in query pane, it return correct rows in the result pane BUT just in the messages pane, it always shown the above annoying error message...


 
Old April 22nd, 2006, 03:03 PM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Bah - I try not to use microsoft when possible.
If the request goes through but you get an error message coming back it could mean that there is a configuration problem.. if it was a syntax error it would just return SQL error refer to manual..

You might want to check PHP though.. it was design to work with mysql :)

Sorry , Can't help you further than that. :(
 
Old April 23rd, 2006, 03:42 AM
Registered User
 
Join Date: Apr 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, anyway, Mantis.
If possible i will look into php as well in future if it really great... :)


 
Old September 25th, 2006, 08:15 AM
Authorized User
 
Join Date: Apr 2005
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default

MySQL Control Center (0.9.4-beta) has a bug that uses "1" instead of the current table name. Just copy the SQL from the History tab, fix the name, and execute it in the SQL box.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Table Exist? elansolutionsltd Access VBA 5 January 23rd, 2006 03:43 AM
Error :Provider (0x80040E37)Table does not exist. thahir Classic ASP Components 0 September 12th, 2005 12:02 AM
Determine if a table exist rdfernandez Access VBA 4 March 30th, 2005 04:40 AM
Table 'buzzly_comicsite.forum_admin' doesn't exist AMP_Engineer BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 September 4th, 2004 06:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.