Cant run wordpress fresh install

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Cant run wordpress fresh install

Postby garfy » 01. August 2011 19:37

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!!
garfy
 
Posts: 36
Joined: 14. January 2011 08:32

Re: Cant run wordpress fresh install

Postby garfy » 02. August 2011 20:11

come on people, i cant figure this out, somebody must be using WP right?
garfy
 
Posts: 36
Joined: 14. January 2011 08:32

Re: Cant run wordpress fresh install

Postby bungeshea » 06. August 2011 09:41

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
bungeshea
 
Posts: 2
Joined: 06. August 2011 08:33

Re: Cant run wordpress fresh install

Postby bungeshea » 06. August 2011 09:47

PS: Make sure you have Apache, PHP and MySQL running! :wink:
bungeshea
 
Posts: 2
Joined: 06. August 2011 08:33

Re: Cant run wordpress fresh install

Postby garfy » 07. August 2011 04:04

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
garfy
 
Posts: 36
Joined: 14. January 2011 08:32


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 40 guests