douzuizhuo0587 2014-08-20 06:18 采纳率: 0%
浏览 62
已采纳

备份没有blob数据的MySQL数据库

Situation: I have a MySQL database that I would like to backup/export as an sql file. The database has a single table in it that contains a longblob field. I want to export the database without the data/contents of the longblob field.

Problem: Not sure how to export the database without the longblog field's data.

Desired result: A shell/php script or command that will create a sql file containing that database backup without the contents of the longblog field.

  • 写回答

1条回答 默认 最新

  • dpylt7626401 2014-08-20 06:22
    关注

    To skip objects by type, use the --skip option with a list of the objects to skip. This enables you to extract a particular set of objects, say, for exporting only events (by excluding all other types). Similarly, to skip creation of UPDATE statements for BLOB data, specify the --skip-blobs option.

    http://dev.mysql.com/doc/mysql-utilities/1.3/en/mysqldbexport.html

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序
  • ¥15 onvif+openssl,vs2022编译openssl64