Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8320651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:43:40+00:00 2026-06-08T22:43:40+00:00

I need to give an user TRIGGER permission for an whole schema in mysql

  • 0

I need to give an user TRIGGER permission for an whole schema in mysql to import mysql workbench backup.

I tried with:

grant trigger ON `schemaname`.* TO `user`@`localhost`

But while importing there comes the error that the user haven’t the permissions.

ERROR 1142 (42000) at line 53: TRIGGER command denied to user 'user'@'localhost' for table 'table'

I tried to give the user TRIGGER permission to the table – that works, but of course only for that table, for the others still came the error.

Is there any way to give an user trigger permission to an schema without giving him the permission for every table separately?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T22:43:43+00:00Added an answer on June 8, 2026 at 10:43 pm

    From MySQL Docs

    In MySQL 5.0 CREATE TRIGGER requires the SUPER privilege.
    

    So you need to give SUPER privileges to the User. While importing, there will be command like “Create Trigger…” which is throwing an error.

    Check your MySQL version and definer value as well for trigger in the importing file.

    Edit:
    For version 5.1, follow MySQL docs, that says:

    CREATE TRIGGER requires the TRIGGER privilege for the table associated with the 
    trigger. The statement might also require the SUPER privilege, depending on 
    the DEFINER value, as described later in this section. If binary logging is 
    enabled, CREATE TRIGGER might require the SUPER privilege, as described in 
    Section 19.7, “Binary Logging of Stored Programs”. (Before MySQL 5.1.6, there is 
    no TRIGGER privilege and this statement requires the SUPER privilege in all cases)
    
    The DEFINER clause determines the security context to be used when checking access
    privileges at trigger activation time.
    

    So, you need to check Definer value for importing trigger. It might have something like : DEFINER = root. Try removing the definer then try importing. Hope it works…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using .NET's SqlBulkCopy, what permission do I need to give to the user in
i am building a php based website but now i need to give user
I need to give my user a web interface to change the session timeout
I need to give the user a snippet of js code that will insert
I need to give user ability to enter a time in form hh:mm:ss (with
I need to give an alert when user clicks appropriate buttons. This is my
In my application I need to give user opportinity to see/edit all available fields
I need to give user one alert after saving an item.So I am using
I need to give the user the possibility to insert some custom geometry, like
Let's say I need to give the user the ability to choose by a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.