If you are Installing Joomla right now.
It’s enough to Insert the Right IP in the Host Field.
If you already Installed Joomla follow:
-
Go in your JoomlaRoot
-
Open and Edit configuration.php
$host = 'xxx.xxx.xxx.xxx:portNumber'
$user = 'yourMySQLUser'
$db = 'yourDBName'
$pass = 'yourPassword'
Default portNumber is 3306