将 SQL 文件导入 hostgator phpmyadmin 时出错
Error while importing a SQL file to hostgator phpmyadmin
我在尝试将 SQL 文件导入我的 hostgator 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 文件然后通过 'Save As' 以另一个名称保存它来修复错误,这听起来很愚蠢但它帮助解决了大部分问题#1064 错误。
我在尝试将 SQL 文件导入我的 hostgator 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 文件然后通过 'Save As' 以另一个名称保存它来修复错误,这听起来很愚蠢但它帮助解决了大部分问题#1064 错误。