I’m using the following command
GRANT ALL PRIVILEGES ON *.* TO 'user'@'ip'
IDENTIFIED BY 'password'
WITH GRANT OPTION;
To grant all privileges to a user. Is there a way I can make the ip a wildcard like 192.168.1.* so that I don’t need to manually add each LAN ip I want give the user access to connect from?
Yes, use
%in an address.Or you can use less restrictive host name and allow
userto connect from everywhere.