You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
container environment pretty much exclusively use '%' for grants and the network isn't known (by mysql/mariadb container producers), and even a local environment would keen it this way and apply limits in their docker swarm or kubernetes configuraiton.
UPDATE mysql.user SET host ='SpecificDNSorIp' WHERE user='root' AND host ='%'; FLUSH PRIVILEGES;
Why this is a horrible suggestion (to which detailed, but incomplete, work around can be written if still desired):
Procedures, events, triggers, functions (and possibly others) objects connected to root@% become instantly invalid.
Encourages too much direct manipulation of mysql system tables.
Won't work on MariaDB-10.4+
The text was updated successfully, but these errors were encountered:
Altering mysql.user tables isn't something users should do.
RENAME USER has existed for a long time, use this instead.
Also change SpecificDNSorIp because DNS based grants are
a horrible idea, fragile, and could be disabled with
--skip-name-resolve.
closesmajor#536
Reasons for removal:
container environment pretty much exclusively use '%' for grants and the network isn't known (by mysql/mariadb container producers), and even a local environment would keen it this way and apply limits in their docker swarm or kubernetes configuraiton.
UPDATE mysql.user SET host ='SpecificDNSorIp' WHERE user='root' AND host ='%'; FLUSH PRIVILEGES;
Why this is a horrible suggestion (to which detailed, but incomplete, work around can be written if still desired):
The text was updated successfully, but these errors were encountered: