Welcome Guest, Not a member yet? Register   Sign In
CI Shield setup: can't connect to database
#5

(05-28-2025, 05:51 PM)SpingMan Wrote:
(05-24-2025, 09:07 PM)InsiteFX Wrote: Check your MySQLi my.ini port number it is usually 3306
Thanks for the suggestion, but it didn't help: for whatever reason, MAMP sets its default ports for Apache and MySQL at 8888 and 8889 respectively, and I have not changed those settings. I was also able to access the database through localhost:8889 through other scripts and the terminal, so that doesn't appear to be the problem.

Are you using MAMP for Windows? Even the free version of MAMP for Mac should allow you to use ports 80 and 3306 (web server & Db respectively).
I had published an end-to-end tutorial video on showing how to set up the free version of MAMP (on macOS) for frameworks like CodeIgniter:

How to Set Up a Virtual Host on Free MAMP for Frameworks like CodeIgniter 4 and Laravel  

Near the exact timestamp suffixed to the link above, you should see where exactly to customize default MAMP ports.

CodeIgniter Wizard (CRUD code generator for Mac) instantly scaffolds Bootstrap-based web applications with an administrative interface (admin templates include Bootstrap5)

Reply


Messages In This Thread
RE: CI Shield setup: can't connect to database - by gosocial2 - 05-30-2025, 05:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB