mysql -u root -p -e 'FLUSH PRIVILEGES;'

Category: Databases & SQL

mysql -u root -p -e 'FLUSH PRIVILEGES;'

Reload the grant tables

Forces MySQL to reread the privilege tables, needed after directly editing mysql.user with DML statements. GRANT and REVOKE take effect immediately on their own, so this is only for manual table edits.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.