Mysqldump
lastmod 2025-05-21created 2025-05-211 edits
Dump/Load Example
Backing up a server database to an SQL file
Sample that backs up the database mydb at 192.168.0.101, port 3306, username root, password 1234, and saves it as an SQL file:
Restoring to a local server from a saved SQL file
First, if the DB to restore into does not exist, create it:
Then load the SQL.
See also
Pages that link here