How to install wordpress in your local with mysql database
1. Download WordPress
- Go to WordPress.org Download.
- Download the latest WordPress
.zippackage.
2. Move and Unzip to Local Server
- Locate your WAMP installation directory.
- Open the
wwwfolder (for WAMP) - Create a new folder (this will be your project name/URL).
Example:jagwinder - Extract the WordPress
.zipinside this folder.
Path will look like:
C:\wamp64\www\jagwinder
3. Setup MySQL Database
- Open your browser and visit:
3. Setup MySQL Database
- Open your browser and visit:
http://localhost/phpmyadmin
Click New on the left sidebar.
Enter a Database Name (example: jagwinder_db).
Choose utf8_general_ci as collation (default is fine too).
Click Create.
4. Run WordPress Installer
- Now visit:
http://localhost/jagwinder
WordPress setup wizard will open.
Select your language and click Continue.
Enter database details:
- Database Name:
jagwinder_db - Username:
root(default in WAMP) - Password: (leave blank unless you set one)
- Database Host:
localhost - Table Prefix:
wp_(you can change if needed)
Click Submit and then Run the installation
Create Admin User
- Enter Site Title (your project name).
- Choose Admin Username and Password.
- Enter Admin Email.
- Click Install WordPress.
6. Login to Dashboard
- Once installed, go to:
http://localhost/jagwinder/wp-admin - Login with your admin credentials.
- You now have a local WordPress site running with MySQL.
The folder name inside /www (like jagwinder) becomes your local project URL, e.g., http://localhost/jagwinder.