Page 1 of 1

Cant run wordpress fresh install

PostPosted: 01. August 2011 19:37
by garfy
I get this error

Error establishing a database connection

I researched it and changed the wp-config to this

* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the
* installation. You don't have to use the web site, you can just copy this file
* to "wp-config.php" and fill in the values.
*
* @package WordPress
*/

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress');

/** MySQL database username */
define('DB_USER', 'root');

/** MySQL database password */
define('DB_PASSWORD', '');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');


I am clueless, I still get and error, the password field is blank
user is root and the name of database is wordpress

HELP!!

Re: Cant run wordpress fresh install

PostPosted: 02. August 2011 20:11
by garfy
come on people, i cant figure this out, somebody must be using WP right?

Re: Cant run wordpress fresh install

PostPosted: 06. August 2011 09:41
by bungeshea
Here's what to do:
  1. Create a MySQL database with PHPmyAdmin, call it wordpress
  2. Delete, move or rename wp-config.php
  3. Goto http://localhost/Directory_Where_You_Uploaded_WordPress_To
  4. It should come up with an error screen. Enter the following info: (assuming you have not changed it)
    Database Name: wordpress
    User Name: root
    Password:
    Database Host: localhost
    Table Prefix: wp_
  5. Run the install
It worked for me... :D

Re: Cant run wordpress fresh install

PostPosted: 06. August 2011 09:47
by bungeshea
PS: Make sure you have Apache, PHP and MySQL running! :wink:

Re: Cant run wordpress fresh install

PostPosted: 07. August 2011 04:04
by garfy
I solved it, yes I have everything running, that is for sure

what I did is i left the password field empty, and I in fact have a password for mysql so I had to put that in

no it works perfectly