Title: cortes's Replies | WordPress.org

---

# cortes

  [  ](https://wordpress.org/support/users/cortes/)

 *   [Profile](https://wordpress.org/support/users/cortes/)
 *   [Topics Started](https://wordpress.org/support/users/cortes/topics/)
 *   [Replies Created](https://wordpress.org/support/users/cortes/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/cortes/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/cortes/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/cortes/engagements/)
 *   [Favorites](https://wordpress.org/support/users/cortes/favorites/)

 Search replies:

## Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Current Pages Don’t Show in Edit](https://wordpress.org/support/topic/current-pages-dont-show-in-edit/)
 *  Thread Starter [cortes](https://wordpress.org/support/users/cortes/)
 * (@cortes)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/current-pages-dont-show-in-edit/#post-12291019)
 * Never mind. The code is all in a template file. Now to find the files.
 *   Forum: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
   
   In reply to: [WordPress Won't Connect to DB, But Test Code Does](https://wordpress.org/support/topic/wordpress-wont-connect-to-dbbut-test-code-does/)
 *  Thread Starter [cortes](https://wordpress.org/support/users/cortes/)
 * (@cortes)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/wordpress-wont-connect-to-dbbut-test-code-does/#post-3938950)
 * The answer to the problem was to use 127.0.0.1 without a port in place of localhost.
 *   Forum: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
   
   In reply to: [WordPress Won't Connect to DB, But Test Code Does](https://wordpress.org/support/topic/wordpress-wont-connect-to-dbbut-test-code-does/)
 *  Thread Starter [cortes](https://wordpress.org/support/users/cortes/)
 * (@cortes)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/wordpress-wont-connect-to-dbbut-test-code-does/#post-3938805)
 * I’m confused. The code i cited above works just fine with the server so the server
   is configured correctly to run that code. Are you saying I have to specially 
   configure the server to work with WordPress? I have another non-Wordpress local
   website that also works just fine with the server.
 *   Forum: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
   
   In reply to: [WordPress Won't Connect to DB, But Test Code Does](https://wordpress.org/support/topic/wordpress-wont-connect-to-dbbut-test-code-does/)
 *  Thread Starter [cortes](https://wordpress.org/support/users/cortes/)
 * (@cortes)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/wordpress-wont-connect-to-dbbut-test-code-does/#post-3938787)
 * It’s on my development machine: a Mac Mini running OS X Mountain Lion.
    _ [Moved
   to Localhost Installs]
 *   Forum: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
   
   In reply to: [Mystery Database Engine](https://wordpress.org/support/topic/mystery-database-engine/)
 *  Thread Starter [cortes](https://wordpress.org/support/users/cortes/)
 * (@cortes)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/mystery-database-engine/#post-3936530)
 * This isn’t really a WordPress issue so I’m going to close this.
 *   Forum: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
   
   In reply to: [Mystery Database Engine](https://wordpress.org/support/topic/mystery-database-engine/)
 *  Thread Starter [cortes](https://wordpress.org/support/users/cortes/)
 * (@cortes)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/mystery-database-engine/#post-3936477)
 * Update: this is more of standard connection issue. The database that turned out
   to be working so well was on my production image. I didn’t pay close attention
   to the url. The development version gets the same error. I suspect I deleted 
   it along with the XAMPP application. I can access a non-wordpress database using
   php with this code:
 *  $server = ‘mysql:dbname=amcolan;host=localhost:3306’;
    $this->id = ‘root’; $
   this->password = ‘somepassword’; parent::__construct($server,$this->id, $this-
   >password);
 * This wp-config.php setup doesn’t work:
 * /** MySQL database username */
    define(‘DB_USER’, ‘root’);
 * /** MySQL database password */
    define(‘DB_PASSWORD’, ‘somepassword’);
 * /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost:3306’);
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Extra Space in First div in a Post](https://wordpress.org/support/topic/extra-space-in-first-div-in-a-post/)
 *  Thread Starter [cortes](https://wordpress.org/support/users/cortes/)
 * (@cortes)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/extra-space-in-first-div-in-a-post/#post-1760318)
 * I figured it out. I was clearing floats when I shouldn’t
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Setting Up a Feed](https://wordpress.org/support/topic/setting-up-a-feed/)
 *  Thread Starter [cortes](https://wordpress.org/support/users/cortes/)
 * (@cortes)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/setting-up-a-feed/#post-1752095)
 * Rev. Voodoo, that did the trick. Thanks

Viewing 8 replies - 1 through 8 (of 8 total)