略過並前往主要內容
致電我們
  • 香港 服務時間:9:00~18:00 周一至周五3018 8600
服務專線和服務時間
預約回電

無須線上等候,提交預約我們將儘快回電。

預約回電
說明中心

瀏覽我們線上說明資源

說明

GoDaddy 說明

Exporting MySQL database in SSH

Servers without a control panel (such as cPanel, Plesk, or Simple Control Panel) do not have phpMyAdmin installed. To manage databases without a control panel, you need to use the SSH command line to import .SQL backup files.

  1. Connect to your server or shared hosting account with SSH
  2. Locate your database information:
  3. Connect to MySQL using the following command:
    $ mysqldump -p -h hostname -u username database > dbname.sql
    • Enter the database information for your database:
      • -p : Password
      • -h : Hostname
      • -u : Username
      • database : Database name
      • dbname.sql : Name you want for the backup file
  4. When you see Enter password:, enter your password for that MySQL user
  5. Your database is now exported to the file dbname.sql and is ready for your to download to your local computer

More info