wordpress - 由于 `//`,MYSQL 导入失败

标签 wordpress mysql mysql-error-1064

我有一个 mysql 文件,它似乎在数据库中存储的某些 HTML/JS 中被破坏。

这里有一些错误:

[ERROR in query 178] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '

[ERROR in query 179] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '}

// ]]>
</script>

<script src="./js/tooltip.js" type=' at line 1 [ERROR in query 180]

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '} /* ]]> */

[ERROR in query 181] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Table './web_cms_prod/wp_redirection_logs' is marked as crashed and should be re' at line 1

如果重要的话,它是一个 wordpress 数据库,不确定为什么有人将 HTML 存储在数据库中,但我仍然需要将其导入。

有什么想法吗?我能以某种方式逃避它吗?一个 SED unix 命令会很好,因为它是一个 9 兆的文件。

最佳答案

可能不是 // 而是它前面出现的一些引号。您需要确保字符串值中包含的所有引号都已转义。

关于wordpress - 由于 `//`,MYSQL 导入失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6619179/

相关文章:

mysql select true if...语句满足两个条件

mysql - 如何解码并查看Jboss JMS消息内容?

尽管编写了正确的查询,但仍抛出 MySql 语法错误

javascript - 为什么我的网站导航在谷歌浏览器中消失了?

php - 在 Woocommerce 中获取可变产品的正常价格

mysql - 元查询在数据过多时不返回任何内容

php - 在 Woocommerce 中的特定电子邮件通知中为特定产品添加自定义文本

php - 使用 PHP 添加到 MySQL 数据库

MySQL 触发器设置工资插入/更新限制

Java连接mysql错误