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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

connection problem

Status
Not open for further replies.

rbsee

Programmer
Apr 29, 2003
4
US
I have two XP computers, with the same version of MySQL on each. I have the same database structure and data on each. Each computer has the same user name, and each MySQL database has the same user names. Locally on each, I can connect and work with the data. I can ping each computer from the other computer. My problem is that when I try to connect from one computer to the other I get the following error:

Host 'XXX.XXX.XX.XX' is not allowed to connect to this MySQL server.

This happens on both computers. I can not find the reason for the error.
 
What do I need to change to allow the user to connect from something other than localhost?
 
Something like:

GRANT <permissions> on <database>.<tablespec> to <other machine's username>.'<other machines address>' identified by '<password>'


This will not affect your current localhost login if the usernames are the same -- a unique user is a username and IP address combo.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
I got the connection working. There is one part I don't understand.

My database is on Comoputer B.
I created the user with a password.

When logging in from Computer A, if I use a password, it fails. If I use an empty string for a password, it works.
I am missing another setting? Or is the security obtained because I have added the used to the database server?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top