Hi you have to do the second step properly in this file.. i had the same issue...
mysql -u root -p
CREATE DATABASE your_database_name;
CREATE USER database_user@localhost;
SET PASSWORD FOR database_user@localhost= PASSWORD("database_password");
GRANT ALL PRIVILEGES ON your_database_name.* TO database_user@localhost IDENTIFIED BY 'database_password';
do all off it step by step..You should get "Query OK, 0 rows affected (0.00 sec)" message each time. what i did wrong was, i forgot to enter my database name in grant permission command. hope it will help you.
Wordpress is a free and open source website and blogging tool that uses php and MySQL. It was created in 2003 and has since then expanded to manage 22% of all the new websites created and has over 20,000 plugins to customize its functionality. This tutorial shows how to install Wordpress on a server with LAMP. It is written for Ubuntu 12.04.