Yes, you can surely access MySQL database remotely if the remote MySQL server is configured to accept a remote MySQL connection, where your database is hosted. Below are the configuration settings for the remote connection to MySQL server.
Hostname == MySQL Server IP address
Database name == MySQL database name
Database username == MySQL database username
Database password = Password for MySQL database user
MySQL Connection Port == Server port (default port is 3306)