Export SQL DB using Putty SSH

To Export your SQL DB type the commands bellow. no need shotdown the server. 
Our default SQL DB on Skyzone for Ragnarok Games is ragnarok.

Do the following Steps.

Step 1: login root user on Putty SSH and type the following commands bellow. make sure input your PhpMyAdmin credentials.

DB_USER="ragnarok"
DB_NAME="ragnarok"
DB_PASS="YOUR_DB_PASS"
mysqldump -u $DB_USER -p$DB_PASS $DB_NAME | gzip > "$DB_NAME"_`date '+%Y-%m-%d_%H%M%S'`.sql.gz

Step 2: 
the backup sql will be uploaded on root folder in your winscp.

NOTES: copy all commands and paste it in Putty SSH at a time.

  • 0 Utenti hanno trovato utile questa risposta
Hai trovato utile questa risposta?

Articoli Correlati

Basic SSH (Putty) Commands – List of most used Putty commands in Linux

Basic SSH (PuTTY) commands help you to navigate and work efficiently with the files in Linux...

Import SQL DB using Putty SSH

To import your backup DB make sure to create DB name in your PhpMyAdmin.Our default SQL DB on...

How To Change Time Zone

Method 1: Command Line (Recommended for Servers)   1. Check current time and timezone...