Accessing a mysql database from external host/ip? (ie: mysql workbench)

You need to do

GRANT ALL PRIVILEGES ON *.* TO mysql@'bla.bla.bla' ...

The part after the @ is the host from which the connection is coming, so you have allowed only connections coming from localhost. You need to allow access from each remote host necessary (or all hosts – ... mysql@'%' ... – if applicable).

Leave a Comment