I am having the same problem except both of my sites (Joomla) and (WordPress) are hosted by the same server. I have verified the the password and username in the configuration.php file. I have turned on the remote SQL. I have even allowed_url_fopen directive in php.ini I am not sure what else I can do. Any suggestions?