Bug #1807 | mysql.user table in 4.0.16 works for Host=IP but not Host=Hostname | ||
---|---|---|---|
Submitted: | 11 Nov 2003 11:22 | Modified: | 15 Nov 2003 1:37 |
Reporter: | Justin Cranford | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.0.16 | OS: | Linux (Redhat 9) |
Assigned to: | CPU Architecture: | Any |
[11 Nov 2003 11:22]
Justin Cranford
[11 Nov 2003 11:30]
Paul DuBois
Are you able to connect if you change ESFP008 to esfp008.easylink.ca in the user table entry? It appears that your DNS is resolving ESFP008 to the full name, based on the command you report here: > mysql -h ESFP008 --port 3306 -u root --password= ERROR 1130: Host 'esfp008.easylink.ca' is not allowed to connect to this MySQL server
[11 Nov 2003 12:07]
Justin Cranford
I tried using the full name esfp008.easylink.ca but that did not work. Besides IP the only other thing that worked was Host='%'.
[11 Nov 2003 12:16]
Justin Cranford
Strike my last comment. Using the full domain name worked. I mispelled it earlier. Thanks for your time and sorry for the trouble. It is much appreciated.
[11 Nov 2003 12:33]
Justin Cranford
On second thought I think there may still be a problem. Version 4.0.16 appears to be working so really the problem was with 4.0.13 all along. Both servers and databases were set up the same way (hostname without domain name in mysql.user). The 4.0.13 host is called mgmtsrv. When I run nslookup on that box it resolves as mgmtsrv.easylink.ca and 192.168.2.103. However, there is no entry for mgmtsrv.easylink.ca in mysql.user, only mgmtsrv. Why can I connect to 4.0.13 if mysql is matching up against the hostname and domainname?
[15 Nov 2003 1:37]
Alexander Keremidarski
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.mysql.com/documentation/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php All your questions are answered in manual. For last one - why *you* can connect if host is not in mysql.user table check as *who* you are connected. Most probably as anonymous user