Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doctrine\DBAL\Exception\ConnectionException] external databse #114

Open
Demonium opened this issue Feb 7, 2017 · 0 comments
Open

[Doctrine\DBAL\Exception\ConnectionException] external databse #114

Demonium opened this issue Feb 7, 2017 · 0 comments

Comments

@Demonium
Copy link

Demonium commented Feb 7, 2017

I have error below:
Want to connect external mysql database with below parameters

$app->register(new Silex\Provider\DoctrineServiceProvider(), array(

            'dbs.options' => array(
                    'db' => array(
                            'driver'   => 'pdo_mysql',
                            'dbname'   => 'mydatabase',
                            'host'     => 'myexternalhost',
                            'user'     => 'mydbuser',
                            'password' => 'mypassword',
                            'charset'  => 'utf8',
                    ),
            )

));

my external host has ip myexternalhost= 192.168.30.132

and when I execute php console generate:admin

I'm getting error below
[Doctrine\DBAL\Exception\ConnectionException]
An exception occured in driver: SQLSTATE[28000] [1045] Access denied for user 'mydbuser'@'192.168.30.133' (using pa ssword: YES)

I have change the host with the IP address nothing change

Repository owner deleted a comment from Muhammadinaam Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant