Trigger not created in Mysql

穿精又带淫゛_ 提交于 2019-12-01 03:31:46

问题


I have created one user in cpanel and DB and gave ALLPRIVILEGES to that user and tried to import sql dump which results "TRIGGER command denied to user 'test'@'localhost' for table 'tablename'" .But it works in my local.What i done wrong on this process? .kindly help me.


回答1:


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'


来源:https://stackoverflow.com/questions/6940115/trigger-not-created-in-mysql

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!