LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mysql login (https://www.linuxquestions.org/questions/linux-newbie-8/mysql-login-323537/)

Ab3n 05-14-2005 06:02 PM

mysql login
 
I just installed mysql and did a set password for root@localhost...now everytime I issue the msql command from the root prompt I get this:

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

It worked fine before I did the set password command...How do I "login" using that password?

hw-tph 05-14-2005 06:18 PM

Try mysql -p or mysql -p databasename. If you want to specify the password on the command line (which I don't recommend) you will need to NOT use any space between the -p and the actual password, like this: mysql -pMyPassword databasename.


Håkan

JakeX 07-04-2005 10:45 AM

Hmm I have the same problem :(

That suggestion didn't work for me...


All times are GMT -5. The time now is 10:44 AM.