Backup MySQL via SSH

This article will show you how to create a backup of your MySQL database using the command line Linux MySQL tools.

1. Connect to your Linux server via SSH
2. Use the mysqldump utility to create your database backup.

The command is run in the format:

mysqldump –host server_name –user username --password db_name > backup_file_name.mysql

Host: the hostname or IP Address of the MySQL server that hosts your database
User: your MySQL user name
Password: your MySQL password. You will be prompted to enter this when the command is executed.
DB Name: the name of your MySQL database
Backup File Name: this is the file that will contain the backup of your database.

3. When prompted enter your database password.
4.Your database is now being backed up to the specified file.
5.Additional options can be found by running “mysqldump –help” or by viewing the MySQL reference manual

Wagiman Wiryosukiro

Petani Sistem Informasi, tukang las plugin & themes Wordpress. Co-Founder Saat ini aktif sebagai Developer & kontributor di OpenMandriva Linux.

You may also like...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: