• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Cloning Failed- Database error 1356 'view (null).(null) references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights

machump

New Pleskian
I just installed plesk, i installed a wordpress website and replaced wp-content with wp-content from an existing website i have. I also imported the database using phpmyadmin.

I tried to clone it. The files get cloned successfully, but the database fails with
Code:
view (null).(null) references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights

Going into the failed database, i can see that all the tables are imported, but only 2 of 7 views are imported. My one stored procedure was not imported. Studying the original mysqldump SQL file used to initially set up the website on plesk doesn't show any difference between the views that successfully cloned and the views that weren't (other than the CREATE VIEW queries themselves).

Looking at the GRANTS for the mysql user shows that the user has CREATE VIEW, SHOW VIEW amongst many other privileges.

Any other ideas on how to fix this problem without re-creating the views manually in the failed cloned database?

note: i don't have a view called NULL.NULL in the existing database
 
several of the views that didn't import, i noticed they join on other views, i wonder if that's what led to the errors
 
Back
Top