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