How to export databases through command line?

后端 未结 4 1649
栀梦
栀梦 2021-02-01 05:43

I have URL of phpMyAdmin, I have username and password. How can I export all those databases? Because phpMyAdmin crashes when I try to export them, so I want to try it through c

4条回答
  •  说谎
    说谎 (楼主)
    2021-02-01 06:07

    mysqldump -uUSERNAME -pPASSWORD -hHOSTNAME USER_DATABASE > FILENAME.sql
    

    Then import using:

    mysql -uUSERNAME -pPASSWORD -hHOSTNAME USER_DATABASE < FILENAME.sql
    

提交回复
热议问题