Unable to connect to the database. |
there are a few questions that come to mind. I used to use MySQl but quite honestly find sqlite3 easier and since CI4 has a public dir, then my database is outside whats accessible from the web. Sqlite3 is server-less which means you can play with Ci4 and sqlite3on the desktop.
Now a few things come to mind; where on your PC are you running CI4 apache, xampp or other. You don't say you set up a user and password on the database with appropriate grant permissions so i can't guess that you have done that. Obviously if you didn't do that then you won't get a connection to the database. I mostly don't bother with the env and just edit /Config/Database.php |
Messages In This Thread |
Unable to connect to the database. - by shivek sahay - 08-09-2020, 02:55 AM
RE: Unable to connect to the database. - by captain-sensible - 08-09-2020, 09:21 AM
RE: Unable to connect to the database. - by shivek sahay - 08-10-2020, 11:12 AM
RE: Unable to connect to the database. - by paulbalandan - 08-10-2020, 01:10 PM
RE: Unable to connect to the database. - by devbisco - 08-10-2020, 01:49 PM
RE: Unable to connect to the database. - by shivek sahay - 08-11-2020, 09:10 AM
RE: Unable to connect to the database. - by captain-sensible - 08-12-2020, 06:39 AM
RE: Unable to connect to the database. - by jreklund - 08-12-2020, 07:49 AM
RE: Unable to connect to the database. - by captain-sensible - 08-12-2020, 11:40 AM
RE: Unable to connect to the database. - by InsiteFX - 08-12-2020, 11:53 AM
RE: Unable to connect to the database. - by paulbalandan - 08-12-2020, 12:30 PM
RE: Unable to connect to the database. - by InsiteFX - 08-13-2020, 05:24 AM
|