Accessing a Database Remotely


Replace x.x.x.x in the following command with the IP address of the db host.

mysql -u user -p -h x.x.x.x

Please note: The port 3306 will need to be opened on the server you are trying to access.