mysqldump報錯,mysqldump報

來源:互聯網
上載者:User

mysqldump報錯,mysqldump報

在使用mysqldump命令備份整個資料庫的時候,報錯如下:

mysqldump: Couldn't execute 'SHOW TRIGGERS LIKE 'userlog'': Got error 28 from storage engine (1030)       

查看磁碟空間

[root@localhost~]# df -h
檔案系統              容量  已用 可用 已用% 掛載點
/dev/sda1             9.5G  9.1G     0 100% /
/dev/sda4             3.2G   70M  3.0G   3% /mnt/backup

可以看出磁碟空間不足,刪除部分檔案後,執行OK






mysql 用mysqldump時出現錯誤 什回事?

mysqldump 是在 作業系統命令列下啟動並執行。
不是在 mysql 命令列下啟動並執行

進入MySQL目錄下的bin檔案夾

mysqldump -u 使用者名稱 -p 資料庫名 > 匯出的檔案名稱

C:\Program Files\MySQL\MySQL Server 5.5\bin>mysqldump -u root -p Test > test.sql

Enter password: ********

C:\Program Files\MySQL\MySQL Server 5.5\bin>dir *.sql
磁碟機 C 中的卷沒有標籤。
卷的序號是 406A-C32E

C:\Program Files\MySQL\MySQL Server 5.5\bin 的目錄

2013-01-29 16:34 39,574 test.sql
1 個檔案 39,574 位元組
0 個目錄 5,498,294,272 可用位元組
 
使用mysql內建的mysqldump不可以備份,甚至連查看協助都沒有辦法,試過很多次了,錯誤資訊

你用法錯了,不要登入到mysql的命令列模式,直接開啟cmd,不需登入mysql
 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.