Title: Syntax Error
Last modified: August 19, 2016

---

# Syntax Error

 *  [vir00z](https://wordpress.org/support/users/vir00z/)
 * (@vir00z)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-9/)
 * First i want to say hello to you guys.
    Second i am a newbie using WordPress.
   Third i set up a database, ftp, and all that WP needs and replaced wp-config.
   php whit my information. Now, when i want to connect to my blog says this:
 * `Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/www/
   btwbl0g.co.cc/wp-config.php on line 28`
 * And in line 28 is this:
    [The MySQL Hostname]
 *     ```
       /** The name of the database for WordPress */
       define('DB_NAME', '[mydatabasename]');
   
       /** MySQL database username */
       define('DB_USER', '[myusername]');
   
       /** MySQL database password */
       define('DB_PASSWORD',[mypasswd]');
   
       /** MySQL hostname */
       define('DB_HOST', '*db1.awardspace.com');
       ```
   
 * Don`t know what to do, i have searche on google but nothing.
    Please help me.
   Thanks.

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

 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-9/#post-958078)
 *     ```
       /** MySQL hostname */
       define('DB_HOST', '*db1.awardspace.com');
       ```
   
 * This looks incorrect, it starts with an asterisk (strange), and this value is
   usually **localhost**. Try **localhost** instead, and if this does not work, 
   ask your web host what to use.
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-9/#post-958080)
 * define(‘DB_HOST’, ‘*db1.awardspace.com’); is not correct. Take out the *
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-9/#post-958082)
 * Also, maybe it was just a mistake from posting it here, but your [mypasswd] value
   is missing one of its single quotes.
 *  Thread Starter [vir00z](https://wordpress.org/support/users/vir00z/)
 * (@vir00z)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-9/#post-958088)
 * iridiax and kmessinger i have put “*” for security reason .. i thought ppl can
   do somethin` with that.
 * and yes i have seen that is missing something on my password i will fix it.
 * I will try to put localhost in DB_HOST
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-9/#post-958097)
 * Yes, I just figured that out. If the password correction and DB_HOST do not work
   you might ask awardspace. Sometimes the db will be a combination of you and the
   host, like mysite.awardspacemysqlhosting.com
 *  Thread Starter [vir00z](https://wordpress.org/support/users/vir00z/)
 * (@vir00z)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-9/#post-958099)
 * Now it says me:
 * Error establishing a database connection.
 * I have put localhost on DB_HOST.
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-9/#post-958101)
 * Great! That is progress. Now it can be only 1 of 4 things and the first I would
   check is with my host or on their FAQ to see if they are indeed, local_host.
 *  Thread Starter [vir00z](https://wordpress.org/support/users/vir00z/)
 * (@vir00z)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-9/#post-958105)
 * ok i will wait.
 * Thanks for helping
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-9/#post-958120)
 * Also ask what you need for your DB_NAME value (some require a user name prefix).
 *  Thread Starter [vir00z](https://wordpress.org/support/users/vir00z/)
 * (@vir00z)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-9/#post-958160)
 * i have my DB_NAME 🙂

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

The topic ‘Syntax Error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 3 participants
 * Last reply from: [vir00z](https://wordpress.org/support/users/vir00z/)
 * Last activity: [17 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-9/#post-958160)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
