Hey all,

I have MySQL running without issue inside a chroot by setting  
bind_address = 127.0.0.1 in the /etc/my.cnf and then setting the  
connection setting to 127.0.0.1 in my various scripts. I have two  
questions:

1) Is it possible in some way to get it so that when people specify  
"localhost" instead of 127.0.0.1 MySQL still works? I've got a /etc/ 
hosts file inside the chroot but it doesn't appear to work. Perhaps  
some sort of iptables forwarding?

2) It would seem to me that this setup would prevent remote MySQL  
access on port 3306? This is important still. Is it therefore possible  
to have a chroot environment and still have MySQL function via  
localhost *and* on port 3306 in some way? If so how?

Thanks.
_______________________________________________
Peruser mailing list
[email protected]
http://www.telana.com/mailman/listinfo/peruser

Reply via email to