MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old August 2nd, 2005, 01:23 AM
hazkant hazkant is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 1 hazkant User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 25 sec
Reputation Power: 0
How to clear ACL list?

I am having problem with MySQL. I have been told the following:

It looks like a acl issue on your mysql server, it seems that localhost does
not have access to your sql server, you will need to restart the mysql
server in safemode and reset the acl list to allow access to mysql again

[root@site root]# telnet localhost 3306
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
NHost 'localhost.localdomain' is not allowed to connect to this MySQL
serverConnection closed by foreign host..


Can somebody please tell me what should I type in SSH prompt to fix this? I am new to this kind of stuff, but trying to learn.

Reply With Quote
  #2  
Old September 21st, 2005, 01:27 PM
laidbak laidbak is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Location: In Tha IE -- San Bernardino COUNTY
Posts: 788 laidbak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 4 m 2 sec
Reputation Power: 7
Send a message via ICQ to laidbak Send a message via AIM to laidbak Send a message via MSN to laidbak Send a message via Yahoo to laidbak
Quote:
Originally Posted by hazkant
It looks like a acl issue on your mysql server, it seems that localhost does
not have access to your sql server,

Looks like you are trying to access your mysql server without specifying the Host and/or username and password.

The default installation of Mysql comes with allowing root to connect without a password. This can only be done via the localhost.

something like this (logged in via ssh) should do it:

mysql -u root

if that doesn't help because the root user has a password set, you will need to ask for a password prompt by doing this:

mysql -u root -p

You will then be prompted for the password.

if you do not know the password and you have root access to the machine, you can start Mysql without permissions by skipping the grant tables (kill your mysqld processes first):

There are various ways to stop the mysql process. This is one way:

/etc/rc.d/init.d/mysql stop
another way is
mysqld stop

depends on your platform

if using windows you would just do "net stop mysqld"

start without grant tables

/usr/bin/safe_mysqld --skip-grant-tables

or try another location if the above script was installed elsewhere.

Hope this helps a bit
__________________
__________________________________________________ _
Wil Moore III, MCP | Integrations Specialist | Senior Consultant
Are You Listed...? | DigitallySmooth Inc.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > How to clear ACL list?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway