Welcome Guest, Not a member yet? Register   Sign In
Codeigniter not connecting to database
#1

(This post was last modified: 05-22-2021, 03:45 AM by devprecious.)

Hello, Codeigniter not connecting to database. After setting the information in the .env it doesn't throw an error, even if I put in the wrong database details it won't throw an error too. that's making it hard for me to know if the database has connected.

what I did

database.default.hostname = localhost
database.default.database = ci4
database.default.username = root
database.default.password =
database.default.DBDriver = MySQLi
database.default.DBPrefix =
Reply
#2

(05-22-2021, 03:32 AM)devprecious Wrote: Hello, Codeigniter not connecting to database. After setting the information in the .env it doesn't throw an error, even if I put in the wrong database details it won't throw an error too. that's making it hard for me to know if the database has connected.

what I did

database.default.hostname = localhost
database.default.database = ci4
database.default.username = root
database.default.password =
database.default.DBDriver = MySQLi
database.default.DBPrefix =

see this tread :
https://forum.codeigniter.com/thread-77479.html

 [b][b]John_Beton

[/b]
[/b]
i solved similar problem on server
Reply
#3

(05-22-2021, 09:55 AM)pippuccio76 Wrote:
(05-22-2021, 03:32 AM)devprecious Wrote: Hello, Codeigniter not connecting to database. After setting the information in the .env it doesn't throw an error, even if I put in the wrong database details it won't throw an error too. that's making it hard for me to know if the database has connected.

what I did

database.default.hostname = localhost
database.default.database = ci4
database.default.username = root
database.default.password =
database.default.DBDriver = MySQLi
database.default.DBPrefix =

see this tread :
https://forum.codeigniter.com/thread-77479.html

 [b][b]John_Beton

[/b]
[/b]
i solved similar problem on server
He wasnt able to fix it too
Reply




Theme © iAndrew 2016 - Forum software by © MyBB