【问题标题】:Do line endings matter when moving mysql database between windows and linux?在 windows 和 linux 之间移动 mysql 数据库时,行尾很重要吗?
【发布时间】:2022-11-27 05:06:07
【问题描述】:

我在 Windows 机器(运行 XAMPP)上导出 MySQL 数据库,然后导入到 Linux 服务器(使用 cmdline 或 phpMyAdmin IMPORT“filename.sql”) dbdump 文件混合了 LF/CRLF 行尾,我知道 Linux 使用 LF 作为行尾。 这会导致问题吗? 谢谢

【问题讨论】:

    标签: mysql linux windows


    【解决方案1】:

    根据ctype.h,MySQL 的 SQL 分词器会跳过所有空白字符。

    【讨论】:

      猜你喜欢
      • 2010-09-30
      • 2010-09-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多