Actions

System Administrator's Guide/Granting Trigger Privilege

From Mahara Wiki

< System Administrator's Guide
Revision as of 15:00, 29 March 2012 by Richard (talk | contribs) (Created page with "If your Mahara database user does not have permission to create triggers on the database, you will need to explicitly grant the trigger privilege to the user. To do this, issue …")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

If your Mahara database user does not have permission to create triggers on the database, you will need to explicitly grant the trigger privilege to the user. To do this, issue the following command in your MySQL client:

 GRANT TRIGGER ON <mahara_db_name>.* TO '<mahara_db_user>'@'localhost';

Replace <mahara_db_name> with the name of your Mahara database, and <mahara_db_user> with the database user. You can find these values in your config.php file, under $cfg->dbname and $cfg->dbuser.

If you don't have access to the terminal client, but created the database user using some external tool like 'mysql administrator', you should be able to edit the user's permissions using the same tool. Make sure the TRIGGER privilege is granted.