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 本地测试网站127.0.0.1 已拒绝连接,如何解决?(标签-ubuntu)
  • ¥50 Qt在release捕获异常并跟踪堆栈(有Demo,跑一下环境再回答)
  • ¥30 python,LLM 文本提炼
  • ¥15 关于将inet引入的相关问题
  • ¥15 关于一个倒计时的操作和显示设计
  • ¥15 提问STK的问题,哪位航天领域的同学会啊
  • ¥15 苹果系统的mac m1芯片的笔记本使用ce修改器使用不了
  • ¥15 单相逆变的电压电流双闭环中进行低通滤波PID算法改进
  • ¥15 关于#java#的问题,请各位专家解答!