Basically, what I did is:
mysqldump -uroot -pxxx <some_options> --result-file Backup.sql --databases mysql customappdb
Is it sane to later do
mysql -uroot -pxxx < Backup.sql
Or do I need to take special precautions? I'm running 5.1.73-community.
The only way you could mysqldump a mysql system database from one MySQL instance into another without any issues is if the major versions of MySQL are the same.
You cannot do this to higher versions or lower versions because the
mysql.user
table layout changes with every major release of MySQL.See my posts on why and how to dump the system tables separately
Apr 24, 2014
: mysql: Restore All privileges to admin userOct 17, 2014
: Any known issues upgrading from MySQL 5.1.73 to 5.6.21?Importing the mysql dump file 'backup.sql' would restore the system databases "mysql" along with the database customappdb.It would remove the existing system "mysql" database if it is already present there.
Regarding the import command for mysql,your syntax is correct and you can go ahead.