I am getting error in installation of step 2 I use xampp .
Error states : Database 'magento' does not exist or specified database server user does not have privileges to access this database.
details added are as follows:
database server host: localhost
database server username: root
Database Name: magento
Solved! Go to Solution.
Whenever you install fresh Magento first you have to create a database also.
As per your question you want to use magento as database so you have to create it before using.
Also if you want to use sample data then you should first import sample data to the magento database. Then after when you are installing the Magento you can use this database.