When I try to connect to a local mysql database using it\'s remote ip-address I get a access denied. When I try to connect to that same database from an external machine, it
Try to edit/add bind-address = 0.0.0.0 to your [mysqld] section of your /etc/mysql/mysql.conf.d/mysqld.cnf file and restart MySQL Service.
bind-address = 0.0.0.0
[mysqld]
/etc/mysql/mysql.conf.d/mysqld.cnf