I create my database and user navid
in my shared server with cpanel
(databases -> mySQL@ Databases -> add new user
),and then selecte
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..