【问题标题】:terminal closed -- exit mysqldump: Got errno 32 on write终端关闭——退出 mysqldump:写入时出现 errno 32
【发布时间】:2020-10-27 06:41:32
【问题描述】:

mysqldump --single-transaction -u xx -h xxxx -P3306 -p'lq2' test user_total_label --where="true" | mysql -u root -p'#1xxGw。'测试

#desc 日志显示“终端已关闭——退出 mysqldump:写入时出现 errno 32” 它并不总是有错误,它有时会发生

【问题讨论】:

    标签: mysql


    【解决方案1】:

    errno 32 表示管道损坏。

    如果您安装 perror 实用程序,它将显示错误消息 - [~]: 错误 32 操作系统错误代码 32:管道损坏

    最好先将数据库 mysqldump 到一个文件,然后将文件通过管道传输到目标主机。对于大型数据库,可能会发生管道损坏。

    第 1 步: mysqldump --single-transaction -u xx -h xxxx -P3306 -p'lq2' test user_total_label --where="true" -r results.sql 第2步: mysql -u root -p'#1xxGw。'测试

    【讨论】:

      猜你喜欢
      • 2014-04-12
      • 2016-10-08
      • 1970-01-01
      • 2015-08-08
      • 1970-01-01
      • 2011-07-19
      • 2014-03-16
      • 2015-02-27
      相关资源
      最近更新 更多