MySQL grant all privileges to database except one table
I know this is an old post, but I thought I’d add on to @tdammers question for others to see. You can also perform a SELECT CONCAT on information_schema.tables to create your grant commands, and not have to write a separate script. First revoke all privileges from that db: REVOKE ALL PRIVILEGES ON db.* FROM …