Title: Error after succesfully going through wp-admin.php
Last modified: August 19, 2016

---

# Error after succesfully going through wp-admin.php

 *  [martin23](https://wordpress.org/support/users/martin23/)
 * (@martin23)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/error-after-succesfully-going-through-wp-adminphp/)
 * Hello,
 * i managed to install wordpress on my website. however, after entering the correct
   data on [http://www.example.com/wp-admin.php](http://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. [http://www.example.com/wp-admin/install.php](http://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)

 *  [rmathus](https://wordpress.org/support/users/rmathus/)
 * (@rmathus)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/error-after-succesfully-going-through-wp-adminphp/#post-1118479)
 * 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](http://wordpress.org/support/topic/68664?replies=6)]
 *  Thread Starter [martin23](https://wordpress.org/support/users/martin23/)
 * (@martin23)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/error-after-succesfully-going-through-wp-adminphp/#post-1118557)
 * yes, its working now. but i have another problem now. have a look at these links
   please “[http://www.allbutvocal.com/index.php/2009/06/23/test/&#8221](http://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.

## Tags

 * [dummy](https://wordpress.org/support/topic-tag/dummy/)
 * [install.php](https://wordpress.org/support/topic-tag/install-php/)
 * [installation](https://wordpress.org/support/topic-tag/installation/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 2 participants
 * Last reply from: [martin23](https://wordpress.org/support/users/martin23/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/error-after-succesfully-going-through-wp-adminphp/#post-1118557)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
