@bbenz check this one https://github.com/canonical/microk8s/pull/2966
maybe you need to update sqlite to have latest changes
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am using sqlite for my app, I'd like to use the artisan command php artisan db:show to inspect my database. I'm getting the following error:
Illuminate\Database\QueryException
SQLSTATE[HY000]: General error: 1 no such table: dbstat (SQL: SELECT SUM(pgsize) AS size FROM dbstat WHERE name=failed_jobs)
If I access the db using php artisan db I can run the following query no problem:
SELECT SUM(pgsize) AS size FROM dbstat WHERE name='failed_jobs'
By all other accounts my db connection is working fine, it works on the command line and in the app.
I was wondering if maybe the prepared statement needed quotes around it, so I opened up vendor/laravel/framework/src/Illuminate/Database/Console/DatabaseInspectionCommand.php and changed the query to "SELECT SUM(pgsize) AS size FROM dbstat WHERE name='?'" but that didn't help. The connection still can't find the table dbstat. I don't know if it matters that dbstat is a virtual table. Has anybody dealt with this problem?
Laravel Version: Laravel Framework 9.29.0
Sqlite3 Version: 3.37.0 2021-12-09 01:34:53 9ff244ce0739f8ee52a3e9671adb4ee54c83c640b02e3f9d185fd2f9a179aapl
Please or to participate in this conversation.