In following along with a previous post on installing Apache 2.4 PHP 5.4 and MySQL 5.5.21 on Windows, I will explain how to install WordPress 3.3.1. The installation is very easy to accomplish.
First download the latest version of WordPress from here, which at the time of this post it is 3.3.1. Next you will need to unzip the file to c:\apache24\htdocs\ on your system.
Next step is to create an empty database. To accomplish this task open a command prompt.Login to mysql and create the DB (wordpress) and create the user account and grant access.
$ mysql -u root -p mysql> CREATE DATABASE `wordpress` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; mysql> CREATE USER 'wpadmin'@'localhost' IDENTIFIED BY 'P$ssw0rd!'; mysql> CREATE USER 'wpadmin'@'%' IDENTIFIED BY 'P$ssw0rd!'; mysql> GRANT ALL ON `wordpress` . * TO 'wpadmin>'@'localhost'; mysql> GRANT ALL ON `wordpress` . * TO 'wpadmin'@'%'; mysql> exit
Close the command prompt open Windows Explorer and open C:\Apache24\htdocs\wordpress\wp-config-sample.php with a text editor of your choice. Find the following lines and change the database name to wordpress and your username and password for , which by default is root with no password.
// ** 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’, ‘wpadmin’); /** MySQL database password */ define(‘DB_PASSWORD’, 'P$ssw0rd'); /** MySQL hostname */ define(‘DB_HOST’, ‘localhost’);
Save the file as wp-config.php.
Open your Internet browser and type in http://localhost/wordpress/wp-admin/install.php and everything from there should run smoothly to complete the installation.

