SUPER privilege(s) for this operation

前端 未结 5 1411
难免孤独
难免孤独 2021-02-01 04:54

I create my database and user navid in my shared server with cpanel (databases -> mySQL@ Databases -> add new user),and then selecte

5条回答
  •  野性不改
    2021-02-01 05:09

    I got the problem too and fixed it thus in MySQL Workbench. In my case it is because the "Send to SQL Editor > Create Statement" has extra stuff in there that prevents from being used without modification.

    Something like this:

    CREATE ALGORITHM=UNDEFINED DEFINER=schemax@localhost SQL SECURITY DEFINER VIEW viewName AS SELECT ....

    Change it to this:

    CREATE VIEW viewName AS SELECT ....

    Seems to work now, no need to update permissions. **I am the only user of my database..

提交回复
热议问题