我在尝试将 SQL 文件导入我的主机 phpmyadmin 时遇到以下错误,该文件是从我以前的网络主机导出的。
Error
SQL query:
phpMyAdmin SQL Dump -- version 4.0.10.7
-- http://www.phpmyadmin.net
-- Host: localhost -- Generation Time: Nov 19, 2015 at 06:26 AM -- Server version: 5.5.32-cll-lve -- PHP Version: 5.4.23
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
MySQL said: Documentation
1064 - 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 'phpMyAdmin SQL Dump -- version 4.0.10.7
-- http://www.phpmyadmin.net
-- Host:' at line 1
最佳答案
最后,我可以通过在 Dreamweaver 上打开导出的 SQL 文件,然后通过“另存为”以其他名称保存它来修复错误,这听起来很愚蠢,但它有助于解决大多数 #1064 错误。
关于mysql - 将 SQL 文件导入到 hostgator phpmyadmin 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33976679/