SELECT user, host, Select_priv, Super_priv FROM mysql.user;SHOW GRANTS FOR 'app_user'@'%';REVOKE ALL PRIVILEGES ON *.* FROM 'app_user'@'%';GRANT SELECT, INSERT ON health_db.appointments TO 'app_user'@'%';SET GLOBAL general_log = ON;UPDATE patients SET nhs_number = AES_ENCRYPT(nhs_number, UNHEX(SHA2('key',256)));ALTER PROCEDURE get_patient COMMENT 'PARAMETERISED';A penetration test found that Meridian Health's patient database has critical security misconfigurations: users have excessive privileges, audit logging is disabled, sensitive columns are unencrypted, and there are SQL injection vulnerable stored procedures. You are the DBA brought in to remediate every finding.
No step-by-step guidance. Use the Reference window for command syntax only. You must determine the approach, the correct columns and order, and verify your own results.