简体   繁体   中英

How can i dump blob fields from mysql tables

i am trying to dump the BLOB fields from mysql table.

but when i dumping blob records using sqlYog am getting unvaluable data.

How can i backup BLOB type fields?

Note:

BLOB field has image.

当您打算将参数--hex-blob导入到其他数据库(如sqlite)时,该参数很有用。

The official mysqldump utility can dump BLOBs fields without any problem, use -q or --opt when you run the backup.

So for example to backup images_table that contains image in BLOB format :

mysqldump --opt -u user -ppass dbname images_table > images.sql

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM