About Remote MySQL Servers

The following MySQL query ensures permissions for a user to access the database from a remote (or local) ip_address:

1
2
GRANT ALL PRIVILEGES ON my_database.* 
TO 'my_user'@'ip_address' IDENTIFIED BY 'my_password';

This is necessary when the database server is in a different location than the Django server(s).

Architecture Databases MySQL