I am developing an application with Laravel 5.2 and I must connect a remote database, to do it from the command line I type.
mysql -u root -p -h 'remote_ip' --skip-secure-auth
Doing this does not send any errors, I want to do this from Laravel . How can I add the option?
- skip-secure-auth from config / database.php
'estudiantesdb' => [
'driver' => 'mysql',
'host' => 'remote_ip',
'port' => '3306',
'database' => 'estudiantesdb',
'username' => 'root',
'password' => 'root_password',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,
'engine' => null,
],