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 请问一下这个运行结果是怎么来的
  • ¥15 这个复选框什么作用?
  • ¥15 单通道放大电路的工作原理
  • ¥30 YOLO检测微调结果p为1
  • ¥20 求快手直播间榜单匿名采集ID用户名简单能学会的
  • ¥15 DS18B20内部ADC模数转换器
  • ¥15 做个有关计算的小程序
  • ¥15 MPI读取tif文件无法正常给各进程分配路径
  • ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)
  • ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下