我从WAMP切换到WPN-XM作为本地开发设置。我了解到它使用MariaDB而不是MYSQL。 Serve已安装,MariaDB正在运行。将SQL文件导入到新的MariaDB数据库时出错
我将旧的WAMP DB导出到SQL文件中。当我使用WPN-XM的phpmyadmin导入数据库时,出现红色错误MYSQL消失了。 ???
所以我尝试从mysql客户端C源进口:/myfile.sql和它进口,但我得到很多的错误,如
ERROR 1231 (4200 at line 31613 in file 'c:/myfile.sql: variable 'character_set_client' can't be set to a value of 'null'
ERROR 1075 (42000) at line 31476 in file: 'c:\nycgmc-dev.sql': Incorrect table definition; there can be only one auto column and it must be defined as a key
ERROR 1075 (42000) at line 31481 in file: 'c:\nycgmc-dev.sql': Incorrect table definition; there can be only one auto column and it must be defined as a key
Query OK, 0 rows affected (0.05 sec)
Records: 0 Duplicates: 0 Warnings: 0
ERROR 1075 (42000) at line 31491 in file: 'c:\nycgmc-dev.sql': Incorrect table definition; there can be only one auto column and it must be defined as a key
ERROR 1075 (42000) at line 31496 in file: 'c:\nycgmc-dev.sql': Incorrect table definition; there can be only one auto column and it must be defined as a key
ERROR 1075 (42000) at line 31501 in file: 'c:\nycgmc-dev.sql': Incorrect table definition; there can be only one auto column and it must be defined as a key
ERROR 1075 (42000) at line 31506 in file: 'c:\nycgmc-dev.sql': Incorrect table definition; there can be only one auto column and it must be defined as a key
ERROR 1075 (42000) at line 31511 in file: 'c:\nycgmc-dev.sql': Incorrect table definition; there can be only one auto column and it must be defined as a key
ERROR 1075 (42000) at line 31516 in file: 'c:\nycgmc-dev.sql': Incorrect table definition; there can be only one auto column and it must be defined as a key
我也得到了很多的应该是什么有没有像
Query OK, 7 rows affected (0.10 sec)
当我在phpMyAdmin中查看时,我看到所有的表,但很多都是o字节,意思是没有内容,可能是由于错误。
我认为MySQL和MariaDB几乎是一样的,我应该能够从一个到另一个导入一个SQL文件。为什么我有一个简单的导出和导入错误?
任何帮助表示赞赏。
好的,我通过谷歌搜索发现,你不能从我的MYSQL 5.36到我的新MariaDB 5.536,因为版本必须相同。他们必须是相同的版本或定义会有所不同。这就是为什么我得到错误。让。所以除非有更好的主意,否则我想知道如何将WAMP的MYSQL升级到5.5.36。 –
我一直认为SQL是一个标准,可以将数据从一个版本移动到另一个版本,我想不是。 –
我真的要从MYSQL 5.5.16到MariaDB 5.5.36。在我的WAMP似乎现在是版本5.5.16的地方,不知道这是怎么回事。似乎足够接近版本,不会造成这么多的错误 –