Welcome Guest, Not a member yet? Register   Sign In
Unable to connect to the database.
#7

one thing about xampp if i understand it correctly is that a lot of stuff is embedded for use so its not necessarily all the same as your native PC.

I use apache web server on slackware

Anything that might be of interest in the phpinfo() of xampp ?

A quick google came up that this is not a Codeigniter issue which is backed up by as you say the same stuff working Windows. F
First thing that came to mind is permissions but..whats your approach to editing stuff as a normal user? since xampp is in /opt and therefore root system ?

So whats your app/Config/database.php settings ?


these are mine for sqlite :


Code:
public $default = [
        'DSN'      => '',
        'hostname' => 'localhost',
        'username' => '',
        'password' => '',
        'database' => ROOTPATH.'writable/Art',
        'DBDriver' => 'SQLite3',
        'DBPrefix' => '',
        'pConnect' => false,
        'DBDebug'  => (ENVIRONMENT !== 'production'),
        'cacheOn'  => false,
        'cacheDir' => '',
        'charset'  => 'utf8',
        'DBCollat' => 'utf8_general_ci',
        'swapPre'  => '',
        'encrypt'  => false,
        'compress' => false,
        'strictOn' => false,
        'failover' => [],
        'port'     => 3306,
    ];
Reply


Messages In This Thread
RE: Unable to connect to the database. - by captain-sensible - 08-12-2020, 06:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB