Re: MySQL<->Firewall
On Tue, Jan 08, 2002 at 07:40:12PM +0100, François Bayart wrote:
> > And what ports on the ppp0 have I to open, that the local php-scripts
> > can connect to the database ???
>
> the 3128 with de lo ( local interface ) you can start mysql
> ./safe_mysqld --bind-address=127.0.0.1
>
> and now you can just access to your mysql database wiyth the 127.0.0.1 Ip so
> just by your local server it's more secure
just add the line 'skip-networking' to the [mysqld]-section of your
/etc/mysql/my.cnf, and mysqld doesn't bind to any network interface.
You can connect to the database via unix-socket
/var/run/mysqld/mysqld.sock
Bodo
--
Michael 'Bodo' Feger michael.feger@gmx.de
Reply to: