Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Disable MySQL 3306 port

mysql networking

  • Please log in to reply
4 replies to this topic

#1 Prog

Prog

    CC Resident

  • Just Joined
  • PipPipPipPip
  • 95 posts

Posted 01 May 2008 - 04:07 AM

How/where can I disable the MySQL DB from accepting TCP inbound connections to the 3306 port?
  • 0

#2 dml1978

dml1978

    CC Lurker

  • Just Joined
  • Pip
  • 8 posts

Posted 01 May 2008 - 10:47 AM

The following steps should disable the MySQL service from listening for connections on the default port 3306.
  • Stop the NetProwler Manager and any NetProwler Consoles (if running).
  • Run Notepad.
  • Open the file c:\my.cnf
  • The file should contain two lines

    [mysqld]
    basedir=c:\\mysql
  • Add the line "skip-networking", so the file should look like:

    [mysqld]
    basedir=c:\\mysql
    skip-networking
Save the file and exit notepad.
Disabling access to MySQL via SMB
  • From the Start menu, choose Control Panel
  • Double-click the Services icon.
  • Select Computer Browser from the list of services. Click the Startup button. Set the Startup Type to "Disabled" and click Ok.
  • Repeat Step 3, for the Server service.
  • Restart the workstation.

  • 0

#3 Hektor

Hektor

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 122 posts

Posted 01 May 2008 - 03:08 PM

I think in Linux you have to edit the file /etc/my.cnf.
  • 0

#4 dml1978

dml1978

    CC Lurker

  • Just Joined
  • Pip
  • 8 posts

Posted 13 May 2008 - 10:49 AM

I don't know if you have to change it the instructions I posted is what worked for a friend of mine thats what she was told to do my her husbands friend so not sure.
  • 0

#5 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 24 September 2008 - 04:16 AM

What do you want to try to stop?
  • 0





Also tagged with one or more of these keywords: mysql, networking

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download