This is my connection:
Using CodeIgniter
$db['mysql'] = array(
'dsn' => 'mysql:host=SOMEHOSTNAME;dbname=SOMEDATABASE',
'hostname' => 'SOMEHOSTNAME',
'username' => 'SOME USER',
'password' => 'password',
'database' => 'SOME DATABASE',
'dbdriver' => 'pdo',
);
This is my localhost conection
$db['mysql'] = array(
'dsn' => 'mysql:hostname=localhost; dbname=1410inventory',
'hostname' => '',
'username' => 'root',
'password' => '',
'database' => '',
'dbdriver' => 'pdo',
);
My log pulls this:
ERROR - 2018-07-23 19:36:18 --> PDO: Invalid or non-existent subdriver
Please Help Edit:This is a test DB.