导入mysql数据库时出错

时间:2016-06-07 15:14:14

标签: mysql database import mysql-workbench

我想导入.mwb文件以开始创建我的服务器。以下是错误代码:

#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 '<?xml version="1.0"?> <data grt_format="2.0" document_type="MySQL Workbench Mode' at line 1
<?xml version="1.0"?>
<data grt_format="2.0" document_type="MySQL Workbench Model" version="1.4.4">
<value type="object" struct-name="workbench.Document" id="{9C96C2FB-0BB1-4A76-BE8F-79E5817A1EA6}" struct-checksum="0x7131bf99">
<value type="object" struct-name="workbench.logical.Model" id="{3CB64CD4-2162-4F9E-B626-AD410F02462D}" struct-checksum="0xf4220370" key="logicalModel">
<value _ptr_="0000000023AA1330" type="list" content-type="object" content-struct-name="workbench.logical.Diagram" key="diagrams"/>
<value _ptr_="0000000023AA2600" type="dict" key="customData"/>
<value _ptr_="0000000023AA1B10" type="list" content-type="object" content-    struct-name="model.Marker" key="markers"/>
<value _ptr_="0000000023AA1F70" type="dict" key="options"/>
<value type="string" key="name"></value>

我现在该怎么办?

1 个答案:

答案 0 :(得分:3)

You have an error in your SQL syntax因为您尝试将MWB导入为SQL。系统查找SQL语句并查找XML,这会产生您给出的错误。

您应该将其作为模型打开,然后使用正向工程。

也许这段视频可以帮助您https://www.youtube.com/watch?v=fQH9Z9NVEY0