Title: Parse error: syntax error, unexpected &#039;DB_USER&#039; (T_STRING)
Last modified: August 22, 2016

---

# Parse error: syntax error, unexpected 'DB_USER' (T_STRING)

 *  Resolved [nederlandinside](https://wordpress.org/support/users/nederlandinside/)
 * (@nederlandinside)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-db_user-t_string/)
 * Since 4 days I’m trying but no chance:
    my code looks like this. What is wrong???
 * define(‘DB_NAME’, ‘schirni2015’);
 * define(‘DB_USER’, ‘schirni2015’);
 * define(‘DB_PASSWORD’, ‘******’);
 * define(‘DB_HOST’, ‘localhost’);
 * define(‘DB_CHARSET’, ‘utf8’);

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-db_user-t_string/#post-5764672)
 * Are your db name and db user one and same? double check.
    DO NOT publish your
   real user name etc.
 *  [Senff – a11n](https://wordpress.org/support/users/senff/)
 * (@senff)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-db_user-t_string/#post-5764748)
 * You’re using the wrong type of quotes/apostrophes for both the database name 
   and database user values.
 * If you look very closely, you’ll see that both instances of **schirni2015** start
   with a ‘straight’ quote (‘) but end with a curly one (’). This is also the case
   for the password value.
 * Make sure that they all open and close with straight quotes, so the correct code
   would be:
 *     ```
       define('DB_NAME', 'schirni2015');
       define('DB_USER', 'schirni2015');
       define('DB_PASSWORD', '******');
       define('DB_HOST', 'localhost');
       define('DB_CHARSET', 'utf8');
       ```
   
 * It’s really subtle, but it makes all the difference.
 *  Thread Starter [nederlandinside](https://wordpress.org/support/users/nederlandinside/)
 * (@nederlandinside)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-db_user-t_string/#post-5764756)
 * I will try this. Did not see that myself. Thanks a lot!!!!

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

The topic ‘Parse error: syntax error, unexpected 'DB_USER' (T_STRING)’ is closed
to new replies.

## Tags

 * [installation](https://wordpress.org/support/topic-tag/installation/)
 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [nederlandinside](https://wordpress.org/support/users/nederlandinside/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-db_user-t_string/#post-5764756)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
