Connect to a remote database for wordpress in my own hosting server

For security issues, Hostgator requires more parameters – like port, etc. – in wp-config.php to connect to a remote – non-localhost – mysql server.

Read http://support.hostgator.com/articles/cpanel/how-to-connect-to-the-mysql-database-remotely

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)