• I recieve the following error when I try to install WordPress 3.0.5:

    Parse error: syntax error, unexpected ')' in /f5/danielbryant/public/blog/wp-config.php on line 93

    Line 93 (and previous) are as follows:

    /* That's all, stop editing! Happy blogging. */
    
    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');
    hp');

    Any help is much appreciated.

    EDIT: I realized a mistake here. The last line is a copy of the prior line. I deleted that. Now, I get the following message:

    Error establishing a database connection.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You may want to double check and make sure that the config.php file has the correct information to connect to the database.

    // ** MySQL settings - You can get this info from your web host ** //
    define('WP_CACHE', true);
    define('DB_NAME', 'databasename');
    define('DB_USER', 'databaseuser');
    define('DB_PASSWORD', 'thedatabasepassword');
    define('DB_HOST', 'localhost'); // if the database is hosted locally then "localhost" best. If the database is hosted remotely then the IP address or hostname goes here
    define('DB_CHARSET', 'utf8');
    define('DB_COLLATE', '');

    Also make sure the database user has been granted the correct permissions to the database that it is a user for.

    Thread Starter dan7

    (@dan7)

    I’ve checked it more than four times. I do not know what to do.

    Do I simply need to log on via a remote session and use the mysql command?

    EDIT: Here’s my information…

    My database is banana.db and my user name wpuser.

    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('WP_CACHE', true);
    
    define('DB_NAME', 'banana');
    
    /** MySQL database username */
    define('DB_USER', 'wpuser');
    
    /** MySQL database password */
    define('DB_PASSWORD', '**************');
    
    /** MySQL hostname */
    define('DB_HOST', 'banana.db');

    Make sure you add the following commands to your wp-config.php config file:

    define(‘DB_CHARSET’, ‘utf8’);
    define(‘DB_COLLATE’, ”);

    Also take off:

    /** MySQL hostname */
    define(‘DB_HOST’, ‘banana.db’);

    And add the code:

    define(‘DB_HOST’, $_ENV{DATABASE_SERVER});

    This code will use the settings from the server to define the type of database that is being used.

    Thread Starter dan7

    (@dan7)

    The code reflects the suggestions now. However, it unfortunately still gives me the same error message.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Parse error: syntax error, unexpected ')'’ is closed to new replies.