$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

WordPress Localhost Error Establishing A Database Connection

November 10, 2011 | By Duchateaux.

This Problem with WordPress on the Localhost Usually come from a Not Proper Setting for the Host Parmeter…

To Solve Try to Set you Host to:

127.0.0.1
  1. Open for Editing the wp-config.php

  2. Set the host to -> “127.0.0.1”

To Get some Extra-Insight Look this other Guide:
WordPress Connect to Remote MySQL Database