Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I think I know what I DID!!!!

Status
Not open for further replies.

Coderifous

Programmer
Dec 13, 2001
782
0
0
US
OK, this is a followup post to the post I posted about destroying my database.

In the MySQL database, there is a table called host or hosts or something. I took out a line from that table... I think...

That line may have been blank except for a wild character (%) in a column..

is that table responsible for saying where clients are allowed to connect from???? that would explain my problem. I can't connect from localhost. OK I think that's my problem. Does anyone know how to put that entry back into the table, but without being able to login?
 
Oh, i get it, there are two files, ( i think i have the structure right...if not I am clos) /etc/hosts.allow & /etc/hosts.deny. deny should be empty, and I think you are correct allow should either be empty or contain a wild char.... in anyevent... adding localhost to that file should certainly do the job.
 
To connect to a MySQL server from the same machine (ie
Code:
localhost[code]) you need a specific entry for [code]localhost
in either the
Code:
user
table or the
Code:
host
table. The wildcard (
Code:
%
) does not match
Code:
localhost
.

To connect to a MySQL server from another machine (ie not
Code:
localhost
) you need either a specific entry for that machine, or a wildcard (
Code:
%
).

-Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top