我试图将我的 sql 数据库导入 Phpmyadmin,因为我要转移到另一个主机。
我在尝试添加另一个数据库时遇到了类似的错误。我不知道问题出在哪里。会不会是因为我的旧服务器或新服务器有某种适用于 MySQL 的软件,应该更新什么?
在新服务器上,MariaDB 5.5.41 正在运行。旧的我还没弄明白。
接下来我该怎么做才能找到错误(并删除/替换它)?
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '_transient_timeout_feed_mod_b9388c83948825c1edaef0d856b7b109', '1492459638', 'no' at line 2
错误所在的特定代码片段:
INSERT INTO `wp_options` (`option_id`, `option_name`, `option_value`, `autoload`) VALUES
(2857, '_transient_timeout_feed_mod_b9388c83948825c1edaef0d856b7b109', '1492459638', 'no'),
(2858, '_transient_feed_mod_b9388c83948825c1edaef0d856b7b109', '1492416438', 'no'),
(2859, '_transient_timeout_plugin_slugs', '1492502838', 'no'),
(2860, '_transient_plugin_slugs', 'a:1:{i:0;s:24:"wordpress-seo/wp-seo.php";}', 'no'),
最佳答案
INSERT INTO `wp_options` (`option_id`, `option_name`, `option_value`, `autoload`) VALUES
(2857, '_transient_timeout_feed_mod_b9388c83948825c1edaef0d856b7b109', '1492459638', 'no'),
(2858, '_transient_feed_mod_b9388c83948825c1edaef0d856b7b109', '1492416438', 'no'),
(2859, '_transient_timeout_plugin_slugs', '1492502838', 'no'),
(2860, '_transient_plugin_slugs', 'a:1:{i:0;s:24:"wordpress-seo/wp-seo.php";}', 'no');
希望这会有所帮助。
关于sql - 数据库导入错误语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43515658/