"codeigniter: unable to connect to your database server using the provided settings error message" Answer’s


For me the issue was in the php.ini file. The property mysql.default_socket was pointing to file in a non-existent directory. The property was pointing to /var/mysql/mysql.sock but in OSX, the file was located in /tmp/mysql.sock.

Once I updated the entry in php.ini and restarted the webserver, the issue was resolved.

Wednesday, March 31, 2021
answered 11 Months ago

As default a MySQL Server is configured that he allowes only a binding from localhost.

Go to your my.cnf and comment the line


Then you should look that your MySQL user has enough rights to access from other ips.

MySQL Remote Access

Monday, December 27, 2021
answered 1 Month ago
Only authorized users can answer the question. Please sign in first, or register a free account.
Not the answer you're looking for? Browse other questions tagged :