Steps:
- go to localhost/phpmyadmin
- create a database with your desired name
- exit
- go to wordpress.org
- download wordpress
- extract the folder
- edit the file with name wp_config-sample.php
- go to (db_name,’database name’)
enter your database name over here and save it - go to localhost/database name /wp-admin
- select language
- next
- databasename = the name you choose
- username = root
- password = empty
- database host = localhost
- table prefix =wp_
- submit
- run the install
- site title , username, password enter your desired information
- congrats you have installed wordpress on localhost