Title: Parse Error in the Config.php file
Last modified: September 1, 2016

---

# Parse Error in the Config.php file

 *  [habooble](https://wordpress.org/support/users/habooble/)
 * (@habooble)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-in-the-configphp-file/)
 * I know that I’m totally missing something here. Trying to move a site from one
   server to the other and access the site before shifting over the DNS. But I’m
   getting this bad boy when I try to login to the “temp” site.
 * I changed the password in MySQL and changed it in the Config.php file but still
   getting no love. Help please!
 * Parse error: syntax error, unexpected ‘define’ (T_STRING) in /home/arawak/public_html/
   wp-config.php on line 25

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-in-the-configphp-file/#post-7499386)
 * please paste in lines 20-30 of your wp-config.php file
 *  Thread Starter [habooble](https://wordpress.org/support/users/habooble/)
 * (@habooble)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-in-the-configphp-file/#post-7499388)
 *     ```
       /** MySQL database username */
       define( 'DB_USER', 'redacted' );
       _
       /** MySQL database password */
       define( 'DB_PASSWORD', 'redacted' );
   
       /** MySQL hostname */
       define( 'DB_HOST', 'redacted' );
   
       /** Database Charset to use in creating database tables. */
       define('DB_CHARSET', 'utf8');
       ```
   
 *  Thread Starter [habooble](https://wordpress.org/support/users/habooble/)
 * (@habooble)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-in-the-configphp-file/#post-7499389)
 * and thanks in advance for your helpl!
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-in-the-configphp-file/#post-7499390)
 * What’s the dash before “MySQL database password”? That shouldn’t be there.
 *  Thread Starter [habooble](https://wordpress.org/support/users/habooble/)
 * (@habooble)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-in-the-configphp-file/#post-7499397)
 * I knew there was something! Now I’m just getting an error establishing a database
   connection! Progress!

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

The topic ‘Parse Error in the Config.php file’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [habooble](https://wordpress.org/support/users/habooble/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-in-the-configphp-file/#post-7499397)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
