phplaravelmysqli

Is it possible to use mysqli as database driver in Laravel?


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 uses a PDO connection to connect MySQL server. Is there any way to configure it to use mysqli instead of PDO driver? I am facing a problem to read error message of running queries using PDO driver in Laravel. Is there any way to use mysqli?


Solution

  • 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?