How to export databases through command line?

后端 未结 4 1647
栀梦
栀梦 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:04

    mysqldump -u user -p db_name > db_file.sql

    Edit: based on the comments on another answer.

    If MySQL server allows for remote connections, then you can run this command on another machine you do have access to.

    mysqldump -h hostname-of-your-server -u user -p db_name > db_file.sql

提交回复
热议问题