Reputation: 515
Configuration for database in laravel is:
'mysql' => [
'read' => [
'host' => '192.168.1.1',
],
'write' => [
'host' => '196.168.1.2'
],
'driver' => 'mysql',
'database' => 'database',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
],
It used PDO connection to connect mysql server.Is there any way to configure it to use mysqli instead of PDO driver. I am facing problem to read error message of running database using PDO driver in laravel. Is there any way to use mysqli?
Upvotes: 2
Views: 11720
Reputation: 157875
Is there any way to use mysqli?
No.
I am facing problem to read error message
Just fix that problem.
If you think there is any problem with PDO, why not to ask a question regarding that problem?
Upvotes: 7