I am trying to allow users on my local subnet to log into my MySQL server.
The server is running Ubuntu 23.10 and MySql version 0.0.35-0ubuntu0.213.10.1
The Clients are 2 iMacs with macos Sonoma 14.2.1 and a Windows 11 PC.
The ubuntu server is on my local subnet (192.168.1.0) but is also available via a public fixed IP address. All the clients are using MYSQL Workbench 8.0
I have blocked public access to the server (apart from HTTP) via my firewall. But my issue is giving access to to MySQL server to my local clients.
I have amended /etc/mysql/mysql.conf.d/mysqld.cnf and changed bind-address = 127.00.0.1 to 0.0.0.0 making Mysqld listen on any subnet. But this does seem very secure but it does work.
I have tried using bind-address = 192.168.1.xxx, 192.168.1.yyy, 192.1658.1.zzz but when I try to restart the MySQL service I get the error message.
**Job for mysql.service failed because the control process exited with error code.**
**See "systemctl status mysql.service" and "journalctl -xeu mysql.service" for details** With an exit code of 1.
Also I have tried bind-address = 192.168.1.0 but this gives me the same error message. I would most grateful for any advice on how to limit the bind-address to just my local subnet or even just my three clients