title: WordPress: Connecting local WP to a Shared Remote Database with PHP / wp.config
body: <p>I'm trying to connect my local WordPress build to a remote database I currently host on Bluehost. My account is a shared account; however, I am able to remotely manage the DB on various applications...</p>
  
  <p>I've whitelisted my IP address, and I'm able to remotely connect to that server via Sequel Pro using the SAME credentials that are in my wp-config file; however, when I try to connect via PHP, WordPress is unable to connect and I get a WSOD with no errors in the PHP Log or otherwise...</p>
  
  <p>Using MAMP Pro, ports are using 3306, 443 &amp; 80...</p>
  
  <p>I have the IP address of my database, and my WP config reads as follows (redacted for obvious reasons):</p>
  
  <pre><code>define('DB_NAME', 'cpanelusername_dbname');
  
  /** MySQL database username */
  define('DB_USER', 'cpanelusername_dbusername');
  
  /** MySQL database password */
  define('DB_PASSWORD', 'dbpassword');
  
  /** MySQL hostname */
  define('DB_HOST', 'xx.xx.xx.114');
  </code></pre>
  
  <p>Any advice would be helpful.</p>
  
  <p>*edit: debug constant is enabled, no errors shown</p>