Restore MariaDB database from .sql file

Import a .sql dump into an existing (usually empty) database.

Imports a SQL dump back into a database. The database must exist first. If restoring a gzip file, pipe through gunzip first.

When you need this: After a migration failure, during disaster recovery, or when moving to a new server.

Variables

Command


        
15 views 0 copies
Log in to rate
Log in to save

Free account. Save snippets into your own collections.