Lock Table error

Symptom: When you submit a page you receive this error.

user error: Access denied for user 'redpill'@'localhost' to database 'scsf'
query: LOCK TABLES sequences WRITE in /www/html/includes/database.mysql.inc on line 66.

user error: Access denied for user 'redpill'@'localhost' to database 'scsf'
query: LOCK TABLES sequences WRITE in /www/html/includes/database.mysql.inc on line 66.

warning: Cannot modify header information - headers already sent by
(output started at /www/html/includes/common.inc:384) in
/www/html/includes/common.inc on line 192.

Solution: The user needs lock permissions.

Mysql -u username -p
Enter password
GRANT LOCK TABLES ON drupaldbname.* TO 'drupaldbuser'@'drupalsitelocation';
FLUSH PRIVILEGES;