How do I export a database from the command line?

Sơn Lê

Member
How do I export a database from the command line?
Answer
Command Line
  1. Log into your server via SSH.
  2. Use the command cd to navigate to a directory where your user has write access. …
  3. Export the database by executing the following command: mysqldump –add-drop-table -u admin -p`cat /etc/psa/.psa.shadow` dbname > dbname.sql. …
  4. You can now download the resulting SQL file.
 

Tìm kiếm

Back
Top