LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (https://www.linuxquestions.org/questions/general-10/)
-   -   Mysql configuration in linux (https://www.linuxquestions.org/questions/general-10/mysql-configuration-in-linux-4175413435/)

in088309 06-26-2012 05:04 AM

Mysql configuration in linux
 
Hi..

I installed mysql 5.1 in my cent OS.

After that i am trying the command "mysql -u root" , I got the error message

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

Any help would be appreciable

Thanks in advance

Kustom42 06-26-2012 04:41 PM

You must add the -p option on the end of your command so that it prompts you for the password. If you don't know the password you can start MySQL with the skip-grant-tables option and reset it:

http://www.cyberciti.biz/tips/recove...-password.html


All times are GMT -5. The time now is 08:14 PM.