0

我在本地服务器上开发了网站。然后我将文件传输到网络服务器。但是当我测试该网站时,它报告了 500 Internal Server Error。我检查了数据库参数和配置文件。万事皆安。有人知道这个错误吗?

以下代码导致此问题:

$restarant = $this->getDoctrine()->getRepository("LeoFoodRadarBundle:Restaurant")->find($id);

我检查了日志,发现问题是学说无法连接到数据库:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mayifann_foodradar.timeTable' doesn't exist (uncaught exception) at /home/mayifann/domains/test/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 47 [] []

实际上,我在数据库中有一个名为 timetable 的表,它在本地服务器上运行得很好。造成这个问题的原因是什么?我应该将表名称从时间表更改为时间表吗?

4

0 回答 0