SUPER privilege needed for dump import

Carlos Vidal 1 Reputation point
2022-07-21T16:55:31.793+00:00

I'm trying to import a MySQL dump into a Azure Database for MySQL flexible server and I'm getting the fallowing error:

**ERROR 1227 (42000) at line 2081: Access denied; you need (at least one of) the SUPER privilege(s) for this operation**  

It might be because the dump include some store procedures and views created by user admin, however the new DB was created with a different user.

Admin is not allow as a user name during DB deployment in Azure.

Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
987 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 29,542 Reputation points Microsoft Employee Moderator
    2022-07-22T04:40:44.237+00:00

    Hi, @Carlos Vidal Welcome to the Microsoft Q&A Platform, and thanks for your query.
    You would have to look at line 2081 as mentioned in the above error message to understand what command it is and how you can execute the same without Admin privileges. There are alternate ways in most situations. Or skip those if not required. But will depend on what is there in line 2081.

    Also, in the limitations, super user privilege is not supported in Azure DB for MySQL. Please check the Unsupported section Here
    223892-image.png

    The suggestions in this link might also help you.
    Please let me know if the information is helpful

    Regards
    Geetha


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.