Absolutely, you can do that. If you're struggling of doing that, I would recommend to read the following guide, where the basic commands and techniques are used and applied. Also, it is necessary to read if you're a beginner at SQL. It is sort of a basic user guide, which you should know 100%. All steps and functions are perfectly described, easy to read and have screenshots with comments.
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)