If you are attempting to use two different servers meaning database on one host server and script files in another host server.
I don't believe it will work.
But anyway
You need to figure out the first line which usually is:
'DATABASE_SERVER' => 'localhost',

If you had cpanel you could use:
Remote Database Access Hosts


Blue Man Group
There is no such thing as stupid questions. Just stupid answers