简体   繁体   English

phpMyAdmin错误#1064使用MYSQL40兼容模式

[英]phpMyAdmin Error #1064 using MYSQL40 compatability mode

I got an error #1064 when trying to upload my sql file to phpMyAdmin. 尝试将我的sql文件上传到phpMyAdmin时出现错误#1064。 The database is called "dodgingdeath wordpresspage". 该数据库被称为“dodgingdeath wordpresspage”。

The error says: 错误说:

"#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 "wordpresspage" at line 1" “#1064 - 你的sql语法有错误;请查看与你的mysql服务器版本相对应的手册,以便在第1行”wordpresspage“附近使用正确的语法”

Here's the first part of my sql file, any ideas where the syntax-error could be? 这是我的sql文件的第一部分,语法错误可能是什么想法? Line 1 is obviously only comment. 第1行显然只是评论。 I also don't see any syntax error near "wordpresspage" 我也没有在“wordpresspage”附近看到任何语法错误

-- phpMyAdmin SQL Dump
-- version 4.0.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Erstellungszeit: 11. Feb 2017 um 17:49
-- Server Version: 5.6.12-log
-- PHP-Version: 5.4.12

SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Datenbank: `dodgingdeath wordpresspage`
--
CREATE DATABASE IF NOT EXISTS `dodgingdeath wordpresspage` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE dodgingdeath wordpresspage;

Further info: - I used phpMyAdmin v5.4.12 on the local host (WampServer) and v5.4.38 on the webserver. 更多信息: - 我在本地主机(WampServer)上使用phpMyAdmin v5.4.12,在网络服务器上使用v5.4.38。 Could this be a problem? 这可能是个问题吗? - As I got an error #1273 earlier, I uploaded the files using sql compatability mode "MYSQL40", which is how I ended up with error #1064.... - 当我之前收到错误#1273时,我使用sql兼容模式“MYSQL40”上传文件,这就是我最终错误#1064 ....

由于您的数据库名称包含空格,请在USE中使用双引号,因此:

USE "dodgingdeath wordpresspage";

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM