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