I have created one user in cpanel and DB and gave
TRIGGER command denied to user 'test'@'localhost' for table 'tablename'
Error says that user 'test'@'localhost' misses TRIGGER privilege. Check granted privileges with 'SHOW GRANTS' command, it will show privileges for current user.
To grant this privilege at global level execute this statement -
GRANT Trigger ON *.* TO 'test'@'localhost'
or at object level (for specified table) -
GRANT Trigger ON TABLE database_name.tablename TO 'test'@'localhost'