Welcome Guest, Not a member yet? Register   Sign In
An uncaught Exception was encountered
#8

(This post was last modified: 03-21-2022, 05:59 PM by ChicagoPhil.)

I have confirmed that the missing socket setting is the problem. I think the Codeigniter team needs to consider adding one more setting to the database configuration file. It would be nice to have a socket setting for people that connect to their localhost MYSQL via unix socket. It would probably take 10 minutes to add it to the code and most of that time would be finding the files you need to open to edit.

it would be nice to see something like this:
Code:
public $default = [
        'DSN'      => '',
        'hostname' => 'localhost',
        'username' => 'root',
        'password' => 'root',
        'database' => 'codeigniter',
        'DBDriver' => 'MySQLi',
        'DBPrefix' => '',
        'pConnect' => false,
        'DBDebug'  => (ENVIRONMENT !== 'production'),
        'charset'  => 'utf8',
        'DBCollat' => 'utf8_general_ci',
        'swapPre'  => '',
        'encrypt'  => false,
        'compress' => false,
        'strictOn' => false,
        'failover' => [],
        'port'    => 3306,
        'socket' => '',
    ];
Reply


Messages In This Thread
RE: An uncaught Exception was encountered - by ChicagoPhil - 03-21-2022, 05:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB