the CMS requires database access to lock the tables it depends on. This is used to guarantee the integrity of the data, especially various counters used.
You must manually alter the user preferences in the user table in mysql database. You can do this only on shell, you basicaly have to give a query like:
UPDATE user set Lock_tables_priv='Y' where User='your_username';