Database wont connect |
Good day codeigniter forum,
I just changed to MAC environment and whenever I load the codeigniter index page , I will have error connecting to localhost. Severity: Warning Message: mysqli::real_connect(): (HY000/2002): Connection refused Filename: mysqli/mysqli_driver.php Line Number: 201 Does anyone know how to solve this issue? On window environment, I can set this up in ease. All i need to do is to input the correct info at the database.php file. But on my mac environment, my XAMPP could not load localhost/dashboard , instead I need to add in the port number localhost:8080/dashboard in order to load that particular page.
I have also a Mac and I use Mamp without problems on port 80 with Codeigniter 3 and 4.
So I can advice you to use Mamp. Andre
|
Welcome Guest, Not a member yet? Register Sign In |