LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 11-09-2003, 12:49 AM   #1
likedreamer
LQ Newbie
 
Registered: Oct 2003
Location: georgia state of usa
Posts: 1

Rep: Reputation: 0
why I got "Access denied for user: 'root@localhost'"


I had not given hostname or ip address during my initial installation of Redhat 9. MySQL was up and running and I was able to connect to MySQL instance after my Redhat 9 initial starting up, and even I startup OS many times later.
Then I use 'neat' command to change hostname and IP address and reboot my Redhat 9, the os up and running including MySQL DB. However, I got message of "Access denied for user: 'root@localhost' (Using password: NO)" when I tried to logon to MySQL instance by using user either 'mysql' or 'root'. Please anyone tell me how to fix it !! TKS, TKS.

 
Old 11-09-2003, 06:06 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,456

Rep: Reputation: 104Reputation: 104
log in as root, type
mysql -p
or sth like
/usr/bin/mysql -p

this should give u a prompt to enter the password
 
  


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
Samba + CUPS "Access denied, unable to connect" error lirik Linux - Networking 10 10-13-2011 02:09 PM
Sarge mysql-server Access denied for user: root@localhost infinity432 Linux - Software 2 05-19-2005 12:42 AM
Can't access mounted NFS directory: "permission denied" SparceMatrix Linux - General 6 03-08-2003 02:36 PM
Permission denied on " ls "for root user itsjvivek Linux - General 12 12-11-2002 08:02 PM
"Access Denied" to printer and directories shared via Samba Aarstar Linux - Networking 1 03-05-2002 07:38 PM


All times are GMT -5. The time now is 12:51 PM.

Main Menu
Advertisement
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