MYSql config bind-address set to 0.0.0.0 but netstat shows different on Ubuntu

后端 未结 2 708
陌清茗
陌清茗 2020-12-04 02:23

Following this thread. I\'ve successfully edited my my.cnf file to comment out the #bind-address value and also tried to specify 0.0.0.0 and the s

2条回答
  •  生来不讨喜
    2020-12-04 02:56

    I had the same issue: mysql configured correctly, sudo systemctl restart mysql seemed to work fine, but sudo lsof -i -P -n | grep 3306 still gave me TCP 127.0.0.1:3306 (LISTEN) instead of the expected TCP *:3306 (LISTEN), and I noticed from ps aux | grep mysql that /usr/bin/mysqld hadn't actually been restarted.

    A full reboot was necessary for my new settings to take effect.

提交回复
热议问题