• I can’t establish a database connection.
    The wp config file has been checked and verified and the only thing I can think of is the options_general.php is messed up.
    Isn’t the blog address supposed to be in this file?

    <table class=”form-table”>
    <tr valign=”top”>
    <th scope=”row”><label for=”blogname”><?php _e(‘Blog Title’) ?></label></th>
    <td><input name=”blogname” type=”text” id=”blogname” value=”<?php form_option(‘blogname’); ?>” class=”regular-text” /></td>
    </tr>
    <tr valign=”top”>
    <th scope=”row”><label for=”blogdescription”><?php _e(‘Tagline’) ?></label></th>
    <td><input name=”blogdescription” type=”text” id=”blogdescription” value=”<?php form_option(‘blogdescription’); ?>” class=”regular-text” />
    <span class=”description”><?php _e(‘In a few words, explain what this blog is about.’) ?></span></td>
    </tr>
    <tr valign=”top”>
    <th scope=”row”><label for=”siteurl”><?php _e(‘WordPress address (URL)’) ?></label></th>
    <td><input name=”siteurl” type=”text” id=”siteurl” value=”<?php form_option(‘siteurl’); ?>” class=”regular-text code<?php if ( defined( ‘WP_SITEURL’ ) ) : ?> disabled” disabled=”disabled”<?php else: ?>”<?php endif; ?> /></td>
    </tr>
    <tr valign=”top”>
    <th scope=”row”><label for=”home”><?php _e(‘Blog address (URL)’) ?></label></th>
    <td><input name=”home” type=”text” id=”home” value=”<?php form_option(‘home’); ?>” class=”regular-text code<?php if ( defined( ‘WP_HOME’ ) ) : ?> disabled” disabled=”disabled”<?php else: ?>”<?php endif; ?> />
    <span class=”description”><?php _e(‘Enter the address here if you want your blog homepage to be different from the directory you installed WordPress.’); ?

Viewing 1 replies (of 1 total)
  • Hi,

    Check with these options:

    – Username and password information in your wp-config.php file is incorrect. Please check with PHPMyAdmin and correct it or reset it. Also make necessary changes in wp-config.php file.

    – Make sure that you have typed correct host name in wp-config.php file.

    – Your hosting service provider’s database server is down. Hence, take a support from your hosting service provider.

    Thanks,

    Shane G.

Viewing 1 replies (of 1 total)

The topic ‘Error establishing a database connection’ is closed to new replies.