You are here: PDO unable to find an existing MySQL table « PHP SQL « IT news, forums, messages
PDO unable to find an existing MySQL table

Posted by Jared on 01/10/07 22:19

I just migrated to Zend Framework 0.6.0.

Code which was previously working is now generating this error:

Fatal error: Uncaught exception 'PDOException' with message
'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'eca.part'
doesn't exist' in
/var/www/localhost/htdocs/echo/library/Zend/Db/Adapter/Pdo/Abstract.php:119

The table DOES exist, and I can query it fine from mysql command line.

It looks like a PDO::prepare error, for that is what is happening on
line 119, simply a call to _connection->prepare($sql).

The SQL statement is a vanilla SELECT with no joins, from a single
table. This error comes up with every SELECT query I run on any table.
Does anyone recognize this problem?

-Jared

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация