How to close mysql port 3306 under Linux
#vi/etc/my.cnf Add skip-networking under [mysqld] to MySQL again: # servicemysqldstop # servicemysqldstart Close port 3306. Local programs can be connected through mysql.sock, without affecting the use, which not only improves the access speed, but also improves the security and avoids remote connection to mysql database.