How to Import a database via SSH

For cPanel/WHM

username:test_test

database name: test_name

mysql test_test:test_name < /home/test.com/databasename.sql

For Cyberpanel

username:test_test

database name: test_name

password: secreto

mysql -u test_test -psecreto test_name < /home/test.com/public_html/databasename.sql
Please rate this article to help us improve our Knowledge Base.

1 0




Hello , talk to a hosting specialist today and discover which options will work best for you.

+255 734 666 100