Reading MySQL security: inconsistencies I remembered a
few related experiments that I did several years ago when I was
studying for the MySQL certification. The first fact that came to
mind is about the clause "WITH GRANT OPTION", which can only be
given on the full set of options, not on a single grant. For
example
GRANT INSERT,DELETE,UPDATE on world.* to myuser identified by 'mypass';[Read more]
GRANT SELECT on world.* to myuser identified by 'mypass' WITH GRANT OPTION;
show grants for myuser\G
*************************** 1. row ***************************
Grants for myuser@%: GRANT USAGE ON *.* TO 'myuser'@'%' IDENTIFIED BY PASSWORD '*6C8989366EAF75BB670AD8EA7A7FC1176A95CEF4'
*************************** 2. row ***************************
Grants for myuser@%: GRANT SELECT, INSERT, UPDATE, DELETE ON `world`.* TO 'myuser'@'%' WITH GRANT …