Error #1044 - Access denied for user 'root'@'localhost' to database 'information_schema'

JonYork picture JonYork · Jan 28, 2011 · Viewed 95.5k times · Source

Alright, so here is the scenario

I performed a full backup on my mysql server today. Now when I try to import that .sql dump file, I get the error mentioned in the title and it does not load all the other databases.

How can I get around this so phymyadmin will allow me to import the whole file, or is there a way I could "remove" information_schema from the sql dump

Thanks

Answer

JonYork picture JonYork · Jan 28, 2011

As Dan Grossman said:

To "remove" information_schema from the dump, open the file in notepad and delete those lines. It's just a text file of sequential queries to run.