You can also restrict port 3306 to localhost with :
bind-address = 127.0.0.1
in /etc/my.cnf

Hope this helps
-- 
Joseph Bueno

David Lubowa wrote:

> port 3306 is the default port for mysql , if you do "grep -i 3306
> /etc/services " you will see what service runs on that port. As for
> restricting access to it without a firewall i guess you would have to
> set up
> specific users who can access it and throw out the rest. Have a look
> at the
> mysql docs and see how you can set up users on your dbases. i hope this
> helps
>
> cheers
> David Ziggy Lubowa
> Network Engineer
> One2net (U)
> web: www.one2net.co.ug
> Tel: +256 41 345466
>
> -----Original Message-----
> From: Admin-Stress [mailto:meerkapot@;yahoo.com]
> Sent: Friday, November 15, 2002 11:28 AM
> To: [EMAIL PROTECTED]
> Subject: restricting mysql
>
>
> Hi,
>
> After I installed mysql, I noticed there is an open port now, port 3306.
> Can I restrict this so only from localhost can connect? I meant to close
> port 3306.
> But without using firewall :( I dont have knowledge about this.
>
> If there is no way to do this without firewall, then I will learn it.
>
> I tried --skip-networking, but then mysqld could not be started. I got
> this
> from google.com. Is it
> the correct way?
>
> Thanks.
> kapot
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Web Hosting - Let the expert host your site
> http://webhosting.yahoo.com
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to