Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Drewlim7's avatar

Base table or view not found: 1932 Table 'db.tablename' doesn't exist in engine

I am having trouble to perform sql query with laravel out of sudden. I have tried to delete everything and add a new table still having the same problem. What should I do?

0 likes
4 replies
bobbybouwmann's avatar

Are you sure you're using the correct database credentials? It sounds to me that you're not connecting to the correct database connection

Drewlim7's avatar

OMG, not sure why the model of the table has changed out of sudden. For future viewers, please double check capital letter with your MySQL table name and your model name if you are using this

protected $table = 'tablename';
Drewlim7's avatar

Another update, I am using Laravel's database notification. I am not sure why I have this error again " Base table or view not found: 1932 Table 'dbname.notifications' doesn't exist in engine" out of sudden. May I know how to retrieve back previous data and make the current table working again?

I am using xampp to host.

Server type: MariaDB
Server version: 10.4.8-MariaDB - Source distribution
PHP version: 7.3.10
Snapey's avatar

Do you have some tools to inspect the database?

Please or to participate in this conversation.