'Zend Framework 1.2 - Error Table doesn't exists - even though the table already exists in MySQL
We’re on Zend 1.12 https://github.com/Shardj/zf1-future with security and php7.4 compatibility updates.
Since this is a legacy application with very little documentation from the prior developer. I am trying to add/insert data through Zend
to the yearly_report_count
MySQL table. I have already created the MYSQL table, but it throws an error when I try to insert the data. The error is
SQLSTATE[42S02] : Base table
or view not found : 1146 Table 'yearly_report_count' doesn 't exist, query was: DESCRIBE `yearly_report_count` though the table is present in database
I am not sure if the table has to be defined somewhere in the code? In any model, in some configuration?
Solution 1:[1]
The database was not connected to the correct DB, it is fixed, now.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | user580950 |