Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-14-2005, 07:02 PM   #1
Registered: Sep 2004
Location: Colorado, USA
Distribution: CentOS 5
Posts: 144

Rep: Reputation: 15
mysql login

I just installed mysql and did a set password for 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?
Old 05-14-2005, 07:18 PM   #2
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
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.

Old 07-04-2005, 11:45 AM   #3
Registered: Aug 2004
Location: Windsor Ontario
Distribution: Ubuntu, Debian, Redhat
Posts: 44

Rep: Reputation: 15
Hmm I have the same problem

That suggestion didn't work for me...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can not login into mysql. saudoi Solaris / OpenSolaris 1 11-30-2005 03:20 AM
Mysql all users can login huscvarna Linux - Software 1 02-16-2005 07:16 AM
Mysql Root Login SilentK Linux - Newbie 11 08-14-2004 01:54 PM
mysql login permissions mpgram Linux - Software 1 03-05-2004 08:15 PM
mysql login sopiaz57 Linux - Security 1 01-05-2004 11:48 PM

All times are GMT -5. The time now is 07:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration