dokku-mariadb icon indicating copy to clipboard operation
dokku-mariadb copied to clipboard

mariadb:console <app> Access denied

Open arandilopez opened this issue 9 years ago • 1 comments

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

arandilopez avatar Apr 17 '15 04:04 arandilopez