Clone MySQL DB - errors with CREATE VIEW/SHOW VIEW privileges
Posted
by user43537
on Server Fault
See other posts from Server Fault
or by user43537
Published on 2010-05-19T05:09:13Z
Indexed on
2010/05/19
5:20 UTC
Read the original article
Hit count: 284
Running MySQL 5.0.32 on Debian 4.0 (Etch).
I'm trying to clone a WordPress MySQL database completely (structure and data) on the same server. I tried a dump to an .sql file and an import into a new empty database from the command line, but the import fails with errors saying the user does not have the "SHOW VIEW" or "CREATE VIEW" privilege. Trying it with PHPMyAdmin doesn't work either. I also tried doing this with the MySQL root user (not named "root" though) and it shows an "Access Denied" error. I'm terribly confused as to where the problem is.
Any pointers on cloning a MySQL DB and granting all privileges to a user account would be great (specifically for MySQL 5.0.32).
Thanks!
© Server Fault or respective owner