public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alexander Kirillov <nevis2us@infoline.su>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] mysql, bind and dns hostnames
Date: Wed, 26 Jul 2006 17:20:21 +0400	[thread overview]
Message-ID: <44C76C15.3040208@infoline.su> (raw)
In-Reply-To: <200607261431.46439.sguglia@arrows.it>

> I just installed on PC1 (pc-0001.localarea) mysql and bind. locally all OK. 
> when I try to connect via phpmyadmin from PC2 (pc-0002.localarea), the 
> following error prompts:
> 
> Host '192.168.0.2' is not allowed to connect to this MySQL server
> 
> - on my server, I inserted a new record for host=pc-0002.localarea in 
> mysql.user table with the correct user&password, but it seems that somewhere 
> mysql can not to resolve client's IP. Of course, if I insert a new 
> host=192.168.0.2 record, it works fine, but I prefere to use hostnames.

If you have net-dns/bind-tools installed
what's the output of dig -x 192.168.0.2 ?

Are you using FQDN in mysql tables?

You should use GRANT statements instead of hacking
mysql tables directly and FLUSH PRIVILEGES afterwards.

HTH,
Sasha

-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2006-07-26 13:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-26 12:31 [gentoo-user] mysql, bind and dns hostnames sguglia
2006-07-26 13:20 ` Alexander Kirillov [this message]
2006-07-26 14:46   ` sguglia
2006-07-26 15:17     ` Alexander Kirillov
2006-07-26 16:06       ` sguglia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44C76C15.3040208@infoline.su \
    --to=nevis2us@infoline.su \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox