Welcome Guest, Not a member yet? Register   Sign In
Migration: Unable to connect to the database.
#10

(This post was last modified: 02-06-2021, 11:52 AM by superior.)

(02-06-2021, 09:23 AM)paulbalandan Wrote: Please set your logging threshold to 4 in app/Config/Logger.php if not yet set to 4. Run the migrations again in spark. After the cli shows the error, go to writable/logs/ and look for the log file for the day and check the latest entries. You should be looking for logs with "ERROR -->"

> ERROR - 2021-02-06 10:36:31 --> Error connecting to the database: Class 'SQLite3' not found

My .env looks like this (credentials removed)

Code:
#--------------------------------------------------------------------
# DATABASE
#--------------------------------------------------------------------

database.default.hostname =
database.default.database =
database.default.username =
database.default.password =
database.default.DBDriver = MySQLi


Why is it looking voor SQLLite3, and shouldn't this be installed using the composer command?
Also i'm on 'development' mode, i thought this was only used in testing mode?


EDIT:
-------------------------------
My mistake, shouldn't have used the --all in the command, it triggers something else.

> wrong:  php spark migrate --all
> correct: php spark migrate
Reply


Messages In This Thread
RE: Migration: Unable to connect to the database. - by superior - 02-06-2021, 09:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB