LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 05-14-2005, 06:02 PM   #1
Ab3n
Member
 
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 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?
 
Old 05-14-2005, 06:18 PM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
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
 
Old 07-04-2005, 10:45 AM   #3
JakeX
Member
 
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...
 
  


Reply


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 02:20 AM
Mysql all users can login huscvarna Linux - Software 1 02-16-2005 06:16 AM
Mysql Root Login SilentK Linux - Newbie 11 08-14-2004 12:54 PM
mysql login permissions mpgram Linux - Software 1 03-05-2004 07:15 PM
mysql login sopiaz57 Linux - Security 1 01-05-2004 10:48 PM


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

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