MySQL Workbench allow remote connections

How can I allow remote connections to databases with MySQL Workbench?

Trying to connect to a database on an external host and it refuses the connection.

Port 3306 is forwarded correctly.

1

1 Answer

From the server:

GRANT ALL PRIVILEGES ON *.* TO '{USER}'@'{IP{' IDENTIFIED BY '{PASSWORD}' with grant option;
  • {IP} is the IP you want to allow access. You can use % to accept any IP address
  • {USERNAME} is the user you use to connect
  • {PASSWORD} the password you use to connect
  • To confirm the change do ...

    FLUSH PRIVILEGES;

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like