How do I import mysql databases via ssh command line?

You can import mysql databases via ssh command line with the following mysql command:

$ mysql -h localhost -u mysql_username -p mysql_dbname < import_file.sql

If your cpanel account does not already have ssh access enabled, please open a support ticket and we can enable ssh access for you.

  • 0 用戶發現這個有用
這篇文章有幫助嗎?

相關文章

Do you allow remote MySQL connections?

We allow remote MySQL connections. You can login to your cPanel control panel and under the...

What is the max_allowed_packet size for MySQL?

The default setting for MySQL max_allowed_packet is set to: max_allowed_packet=32MB --- If you...

Powered by WHMCompleteSolution