LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error while troubleshooting mysql (https://www.linuxquestions.org/questions/linux-newbie-8/error-while-troubleshooting-mysql-713233/)

palisetty_suman 03-20-2009 04:33 PM

error while troubleshooting mysql
 
Hi All,
I installed mysql and i got the results exactly as showed in the document for installation of mysql but while troubleshooting, i am gettign an error.It is like

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


Can you please help whats wrong. When i went to /etc/init.d and run
mysql start
i am getting same error . Please help.

systemaddict 03-20-2009 05:22 PM

Did you set a root password during installation?

If so you would start mysql like this:

linux$ mysql -u root -p
Enter password:

If you don't use the -p, the mysql server thinks you want to load mysql without a password, and it won't let you do that if you are root (won't let you do it as anyone else either, unles root has created your user to login without a password).

S

palisetty_suman 03-20-2009 05:30 PM

hi
 
Hi system addict,
I tried to do as you said and now its giving different error
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

PLEASE HELP

systemaddict 03-20-2009 06:44 PM

Did you get the 'Enter password:' prompt?

S

palisetty_suman 03-20-2009 07:24 PM

HI
 
ye i got it and then that message.

palisetty_suman 03-20-2009 10:12 PM

HI
 
Hi help me out please.

systemaddict 03-21-2009 03:57 AM

Did you enter a password at the password prompt?

S

systemaddict 03-21-2009 09:52 AM

You might want to check out how to reset the root password: http://dev.mysql.com/doc/refman/5.0/...rmissions.html (I've never had to try this myself).

S

palisetty_suman 03-21-2009 10:07 AM

HI
 
Ya i entered the password and got that different error. Thanks. I don't know what to do.


All times are GMT -5. The time now is 01:11 PM.