Error message
The error message is:
You have two options:1. Change the DEFINERThis is possibly easiest to do when initially importing your database objects, by removing anyDEFINER statements from the dump.Changing the definer later is a more little tricky: How to change the definer for views
How to change the definer for stored proceduresExample:UPDATE `mysql`.`proc` p SET definer = 'user@%' WHERE definer='root@%'
Be careful, because this will change all the definers for all databases.2. Create the missing userIf you've found following error while using MySQL database:From http://www.lynnnayko.com/2010/07/mysql-user-specified-as-definer-root.html This worked like a charm - you only have to change someuser to the name of the missing user. On a local dev server, you might typically just use root .Also consider whether you actually need to grant the user ALL permissions or whether they could do with less.
|
No comments:
Post a Comment