Welcome Guest, Not a member yet? Register   Sign In
Trouble with the db connection
#1

I'm trying to retrieve stuff from db, but I'm getting this error:


Code:
Call to undefined function CodeIgniter\Database\MySQLi\mysqli_init()



Code:
SYSTEMPATH/Database\MySQLi\Connection.php at line 107

Code:
107         $this->mysqli = mysqli_init();

My db config:

PHP Code:
public $default = [
        
'DSN'      => '',
        
'hostname' => '0.0.0.0',
        
'username' => 'username',
        
'password' => 'p4ssw0rd',
        
'database' => 'db_name',
        
'DBDriver' => 'MySQLi',
        
'DBPrefix' => '',
        
'pConnect' => false,
        
'DBDebug'  => (ENVIRONMENT !== 'production'),
        
'cacheOn'  => false,
        
'cacheDir' => '',
 
               'charset'  => 'utf8mb4',
        
'DBCollat' => 'utf8_general_ci',
        
'swapPre'  => '',
        
'encrypt'  => false,
        
'compress' => false,
        
'strictOn' => false,
        
'failover' => [],
        
'port'     => 3306,
    ]; 

The query I'm running:
PHP Code:
$query $db->query('SELECT * FROM table_name'); 



I have PHP 7.2.4, MySQL 8 in 5 compatibility mode, Windows 10, CI4 beta 1
Reply


Messages In This Thread
Trouble with the db connection - by primadonna - 04-06-2019, 04:27 PM
RE: Trouble with the db connection - by MGatner - 04-07-2019, 06:23 AM
RE: Trouble with the db connection - by InsiteFX - 04-07-2019, 03:18 PM
RE: Trouble with the db connection - by InsiteFX - 04-08-2019, 03:12 AM
RE: Trouble with the db connection - by titounnes - 04-09-2019, 01:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB