STEP 1: enter your hostname or IP address and use port 22 @putty. If you enter your hostname, skip http: // www and just enter yourdomain.com.
STEP 2: Then you can enter your cPanel username and press Enter
STEP 3: Then enter your cPanel password and press enter.
STEP4: finally, a step to enter the command line below
mysql -u database_user_name -p database_db_name < /home/alphabettechnologies/public_html/alphabet_webz.sql
and press enter. (Be sure to replace the path with the correct address for your database. SQL database file name. You also need to replace it with the new username and password for the database.
mysql -u database_user_name -p database_db_name < /home/alphabet/public_html/db-backup.sql
STEP 5: enter the password of the database user
That's all, the database will be imported.
source share