PDA

View Full Version : [ubuntu] [SOLVED] forgot mysql root password



chinmaya_n
December 23rd, 2008, 04:01 PM
I am just creating mysql database......... first i gave the password as 'manager' ..... .

But when i tried to install drupal it asked me to create a new database when i tried it gave error as shown. I entered the password correctly.
what should i do now ????????

code:

root@chinmaya:/home/chinmaya# mysqladmin -u username -p create database1
Enter password:
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'username'@'localhost' (using password: YES)'

Help me please.......!!!!!!!

chinmaya_n
December 24th, 2008, 01:52 PM
ohhhhhhh !!!!!!

That was my mistake ......... i should have entered "root" in the place of username and the password as i gave the first time !!!!!

I got it !!!!!!