database - How to configure MariaDB in Laravel 5? -


i have read somewhere that, there no driver "mariadb" in laravel 5 , can use mysql driver use mariadb in laravel 5. getting error when give mariadb username , password. password "root" , username "root".

sqlstate[hy000] [1045] access denied user 'root'@'localhost' (using password: yes) 

can guide me on how configure mariadb used laravel 5.

'mysql' => [         'driver'    => 'mysql',         'host'      => env('db_host', 'localhost'),         'port'      => env('db_port', '3307'),         'database'  => env('db_database', 'doctorsondemand'),         'username'  => env('db_username', 'root'),         'password'  => env('db_password', 'root'),         'charset'   => 'utf8',         'collation' => 'utf8_unicode_ci',         'prefix'    => '',         'strict'    => false,     ], 

well, problem port. default not mentioned , take 3306. so, have include line , mention port 3307. solved problem. hope helps.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -