• 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)
  • /** 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.

    define(‘DB_HOST’, ‘*db1.awardspace.com’); is not correct. Take out the *

    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

    (@vir00z)

    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

    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

    (@vir00z)

    Now it says me:

    Error establishing a database connection.

    I have put localhost on DB_HOST.

    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

    (@vir00z)

    ok i will wait.

    Thanks for helping

    Also ask what you need for your DB_NAME value (some require a user name prefix).

    Thread Starter vir00z

    (@vir00z)

    i have my DB_NAME ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Syntax Error’ is closed to new replies.