0

I changed MySQL default port from 3306 to 12929 in my.cnf in both client and mysqld sections on Debian.

After that I restarted MySQL service. Then I ran netstat -tln and saw that MySQL is still listening at port 3306.

Why is that?

  • 1
    Please post the my.cnf in your question – RolandoMySQLDBA Aug 5 '17 at 17:09
  • And the output of netstat -tln | grep -i mysql. Also, run (as root) find / -name my.cnf – Vérace Aug 5 '17 at 20:33
  • @RolandoMySQLDBA Issue is fixed after restarting server as when I run netstat -tln I can see my server listening at port 12929. Although when I run the netstat command given by @Vérace then it doesn't show any result. – Frank Martin Aug 6 '17 at 14:33
  • @Vérace I found out that correct command would be netstat -tlnp | grep -i mysql – Frank Martin Aug 6 '17 at 14:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.