Trigger not created in Mysql

前端 未结 1 1271
天命终不由人
天命终不由人 2021-01-13 01:54

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 \

1条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-13 02:26

    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'
    

    0 讨论(0)
提交回复
热议问题