• Hello,

    i managed to install wordpress on my website. however, after entering the correct data on https://www.example.com/wp-admin.php, i proceded to the next page where it called me ‘Sparky’ and said that we are ready to install. then, out of the blue, the next page i.e. https://www.example.com/wp-admin/install.php said “Error establishing a database connection”. and now im stuck on this page.

    im a mecahnical guy and a absolute dummy when it comes to IT. so someone please help me.

    thanks a lot.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    Make sure your MySQL username, database, and password are correct in the wp-config.php file within the root directory of the wordpress install. It should look as follows:

    <?php
    // ** MySQL settings ** //
    define('DB_NAME', 'yourdatabase');     // The name of the database
    define('DB_USER', 'yourusername');     // Your MySQL username
    define('DB_PASSWORD', 'yourpassword'); // ...and password
    define('DB_HOST', 'localhost');     // 99% chance you won't need to change this value
    
    // Change the prefix if you want to have multiple blogs in a single database.
    $table_prefix  = 'wp_';   // example: 'wp_' or 'b2' or 'mylogin_'
    
    // Use UTF8 for some plugins
    define('DB_CHARSET', 'utf8');
    
    // Change this to localize WordPress.  A corresponding MO file for the
    // chosen language must be installed to wp-includes/languages.
    // For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
    // to enable German language support.
    define ('WPLANG', '');
    
    /* Stop editing */
    
    define('ABSPATH', dirname(__FILE__).'/');
    require_once(ABSPATH.'wp-settings.php');
    ?>

    Hope this helps,
    [signature moderated Please read the Forum Rules]

    Thread Starter martin23

    (@martin23)

    yes, its working now. but i have another problem now. have a look at these links please “https://www.allbutvocal.com/index.php/2009/06/23/test/&#8221;, what is that index.php doing in there? as far as i think, it shouldn’t be there right? how do i fix this?

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error after succesfully going through wp-admin.php’ is closed to new replies.