ERROR 1045 (28000): ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

Asked by rrchandrakmpati on 2011-02-11

Hi I installed MySql-server in my ubuntu as per the guidelines given by https://help.ubuntu.com/10.04/serverguide/C/mysql.html

during installation it is asked for bind-address, I gave it as 127.0.0.1

then I am trying to connect to SQL data base, with command "#mysql " it is giving showing that

root@ravichandra:/etc/mysql# mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

could you please let me know Where I am doing wrong??

Thankyou,

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu mysql-5.1 Edit question
Assignee:
No assignee Edit question
Last query:
2011-02-11
Last reply:
2011-02-12
Scott Kitterman (kitterman) said : #1

This is better addressed as a support question and not a bug report.

saravanamuthu (saravanamuthu) said : #2

hi rrchandrakmpati

first open a terminal

then use this command in the command line

sudo -s -H

then use the mysql command

saravanamuthu (saravanamuthu) said : #3

hi rrchandrakmpati

first open a terminal

then use this command in the command line

sudo -s -H

then use the mysql command

saravanamuthu (saravanamuthu) said : #4

hi rrchandrakmpati

first open a terminal

then use this command in the command line

sudo -s -H

then use the mysql command

Can you help with this problem?

Provide an answer of your own, or ask rrchandrakmpati for more information if necessary.

To post a message you must log in.