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 Skyzone for Ragnarok Games is ragnarok.

Do the following Steps.

Step 1: Upload your backup SQL DB on root user in WINSCP and rename it as ragnarok.sql or logs.sql depend on what SQL you need to backup.
Sample: I use to import the ragnarok.sql at this guide. 

Step 2: 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="YOURPASSWORD"
mysql -u $db_user -p$db_pass $db_name < $db_name.sql

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

  • 0 Els usuaris han Trobat Això Útil
Ha estat útil la resposta?

Articles Relacionats

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...

Export SQL DB using Putty SSH

To Export your SQL DB type the commands bellow. no need shotdown the server. Our default SQL DB...

How To Change Time Zone

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