I have install mariadb 10.2 on Digitalocean droplet. I have created test@localhost user and granted access to test database.
With test user I can able log into mysql console.
But when I am trying to connect to database from my Yii2 Application, access denied with password arises.
I have run mysql_secure_connection script to block root access from outside.
My DB Config -
Database Component Config:
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=test',
'username' => 'test',
'password' => 'test@123',
'charset' => 'utf8',
];
Does anyone has any idea.