dokku-mariadb
dokku-mariadb copied to clipboard
mariadb:console <app> Access denied
When I run dokku mariadb:console myapp
I got this error:
ERROR 1045 (28000): Access denied for user 'myapp'@'172.17.0.37' (using password: YES)
Also my app throws this: SQLSTATE[HY000] [1045] Access denied for user 'myapp'@'172.17.0.10' (using password: YES)
In my php connection file (Laravel 4.2) I have:
'mysql' => array(
'driver' => 'mysql',
'host' => $_ENV['DB_HOST'],
'database' => $_ENV['DB_NAME'],
'username' => $_ENV['DB_USER'],
'password' => $_ENV['DB_PASS'],
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
),
dokku version: v0.3.17-2-g5224a6c
Did you tried dokku mariadb:create <app> && dokku mariadb:delete <app>
? Do you have database as root login?