Welcome Guest, Not a member yet? Register   Sign In
Not connecting to DB
#1
Thumbs Down 

Hello,

I'm following the tutorial and I'm in the Database chapter.

I have a XAMPP running on port 8082 and I've tested a connect.php in XAMPP connecting to localhost and my user and password, and database ci4tutorial, and this file works.

However, the same parameters in the Database.php file of CodeIgniter, running the code with php spark serve, both outside htdocs and inside htdocs of XAMPP give a not able to connect to the database message.

Do you have any ideas what I may be doing wrong?

Should the DB connection work with the php spark serve command?

Or should I build it and use it inside XAMPP only?

How could I debug this?

Thank you,
Reply


Messages In This Thread
Not connecting to DB - by cbd - 07-10-2023, 02:19 PM
RE: Not connecting to DB - by kenjis - 07-10-2023, 03:55 PM
RE: Not connecting to DB - by cbd - 07-11-2023, 01:17 PM
RE: Not connecting to DB - by kenjis - 07-11-2023, 07:29 PM
RE: Not connecting to DB - by JustJohnQ - 07-11-2023, 07:17 PM
RE: Not connecting to DB - by InsiteFX - 07-11-2023, 10:51 PM
RE: Not connecting to DB - by cbd - 07-13-2023, 07:36 AM
RE: Not connecting to DB - by cbd - 07-13-2023, 09:00 AM
RE: Not connecting to DB - by InsiteFX - 07-13-2023, 11:10 PM
RE: Not connecting to DB - by cbd - 07-21-2023, 12:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB