Quantcast
Channel: Spiceworks Community
Viewing all articles
Browse latest Browse all 4

Problem with restoring MySQL databases using sqldump file

$
0
0

I'm confused. Here's my backup commandline...

    mysqldump -uroot -ppassword --all-databases > D:\MySQL-Backup\AllDBDump.sql

and restore commandline ...

    mysql -uroot -ppassword

It was my understanding that user rights are stored in the mysql database. If I search the AllDBDump.sql file, I can find the section

-- Current Database: `mysql`

I can also search the file for usernames. I found the example below in a section that began LOCK TABLES `tables_priv` WRITE;  ...

    00:00:00','Select,Insert,Update,Delete',''),('%','lean','rbg','projectlog','root@rah1.wiscoind.local','0000-00-00

The user "rbg" does have these rights to the table "projectlog" in the database "lean".


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images