Welcome Guest, Not a member yet? Register   Sign In
Unable to connect to database - cannot find error messages
#3

(09-06-2020, 10:04 PM)SteeveDroz Wrote: Hard to say, do you have a ".env" file at the root of your project? Its content overrides your config files.

Actually, you SHOULD use that ".env" file instead of writing directly to app/Config/Database.php, because you can change configs between your different environments (development, testing, production, …) by simply having another ".env" in each copy of the project.

If my answer is no help, try to provide more details (I know it's a lot to ask, CI4 is quite secretive about why the database doesn't cooperate).
Thanks for the response!

I am using the .env file for db variables, but I have currently commented it out and only using the app/Config/Database.php for simpler debugging.

I would love to provide more details about the issue, but I am not sure where to find more useful information for this issue. Any suggestions on what information would be helpful?
Reply


Messages In This Thread
RE: Unable to connect to database - cannot find error messages - by infidev - 09-06-2020, 10:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB