简体   繁体   English

XAMPP MYSQL PHPMYADMIN数据库导入错误#1064

[英]XAMPP MYSQL PHPMYADMIN database import Error #1064

Having a heck of a time getting a site running locally. 有一段时间让站点在本地运行。

Working with XAMPP for open source preferences over WAMP (no one is sure what WAMPS GPML license is apparently). 与XAMPP一起通过WAMP使用开放源代码首选项(没有人知道WAMPS GPML许可证显然是什么)。

I've tried compatibility modes : None : Oracle : Traditional : MYSQL40 I've tried encoding : utf8 : utf16 我尝试过兼容模式:无:Oracle:传统:MYSQL40我尝试过编码:utf8:utf16

Apache and SQL run perfectly but when using PHPMyAdmin to import the website database I continually get errors regarding syntax errors in the table data itself. Apache和SQL可以完美运行,但是当使用PHPMyAdmin导入网站数据库时,我不断收到有关表数据本身语法错误的错误。 I attribute this to XAMPPs default incorporation of MariaDB in the latest release I'm using. 我将其归因于XAMPP在我使用的最新版本中对MariaDB的默认合并。 I can import this database dump easily on another host's virtual SQL 5.5 server. 我可以轻松地在另一个主机的虚拟SQL 5.5服务器上导入此数据库转储。 I can also upload this database into WAMP without errors. 我也可以将此数据库无错误地上传到WAMP。

Looking this row over it doesn't stand out from any other rows empty fields or data fields. 在它上面看此行不会与其他行中的空字段或数据字段脱颖而出。

MySQL: Error

MySQL said: Documentation
#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
Field1, Field2, Field3, etc,... atline 123

Interestingly the first table is created and stops short. 有趣的是,创建了第一个表并使其停止。 The sequence of rows are consistent until 241 jumps to 245, then 272, and then crashes with error above on row 447? 行的顺序是一致的,直到241跳到245,然后跳到272,然后崩溃,并在第447行上出现错误?

MySql Error logs are also changing based on encoding options. MySql错误日志也根据编码选项而变化。 Not sure if I'm digging myself into a hole while I resolve the unknown. 不知道我在解决未知问题时是否正在挖自己的洞。

Most of the Event Viewer MySql Error Logs show: 大多数事件查看器MySql错误日志显示:

Missing system table mysql.roles_mapping; please run mysql_upgrade to create it

Just upgrade MySql, what type of an update is that? 只需升级MySql,那是什么类型的更新? What about upgrading MariaDB? 升级MariaDB怎么样?

And a few of these: 其中一些:

Incorrect definition of table mysql.proc: expected column 'sql_mode' at position 14 to have type set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','IGNORE_BAD_TABLE_OPTIONS','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVA

Playing with export options I get this error from the first Create Table Statement: 使用导出选项时,我从第一个Create Table语句中得到以下错误:

CREATE TABLE IF NOT EXISTS "Table1" (
  "PRIMARY" int(123) NOT NULL AUTO_INCREMENT,
  "COLUMN1" varchar(123) NOT NULL DEFAULT 'A',
  "COLUMN2" int(123) NOT NULL DEFAULT '0',
  "COLUMN3" varchar(123) DEFAULT NULL,
   ETC...

MySQL said: Documentation
#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 '"TABLE" (
  "ID" int(123) NOT NULL AUTO_INCREMENT,
  "COLUMN1" varchar(123) N' at line 1

Currently picking through the data dump on Notepad++ 当前在Notepad ++上进行数据转储

Thank you in advance! 先感谢您!

Not doube-quotes (") around column names, backtics (`). 列名称,反斜线(`)周围不要用双引号引起来。

Nothing you mentioned indicates a need to change the CHARACTER SET (encoding). 您提到的内容均未表明需要更改CHARACTER SET (编码)。

One of your errors points to sql_mode ; 您的错误之一指向sql_mode let's see it in context. 让我们在上下文中查看它。

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

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