mysql -e 'FLUSH PRIVILEGES;'

Category: Databases & SQL

mysql -e 'FLUSH PRIVILEGES;'

Reload the privilege tables

Needed only when you edited the grant tables directly with INSERT or UPDATE; GRANT and REVOKE apply instantly. On a busy server it can briefly block new connections. Related: SHOW GRANTS FOR.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.