mysql5的sql文件导入到mysql4的方法

1、将mysql5里导出的sql文件导入到mysql5中。
2、用mysqldump -uroot -p1234 --opt --compatible=mysql40 -A -re:\localhost.sql
--compatible=name参数描述如下:
--compatible=name Change the dump to be compatible with a given mode. By
default tables are dumped in a format optimized for
MySQL. Legal modes are: ansi, mysql323, mysql40,
postgresql, oracle, mssql, db2, maxdb, no_key_options,
no_table_options, no_field_options. One can use several
modes separated by commas. Note: Requires MySQL server
version 4.1.0 or higher. This option is ignored with
earlier server versions.
3、将e:\localhost.sql导入mysql4,如mysql命令行中
source e:\localhost.sql
您可能感兴趣的文章:
  • MySQL高效导入多个.sql文件方法详解
  • MySQL导入csv、excel或者sql文件的小技巧
  • MYSQL导入导出sql文件简析
  • mysql导入sql文件报错 ERROR 2013 2006 2002
  • MySQL导入导出.sql文件及常用命令小结
  • mysql导入sql文件命令和mysql远程登陆使用详解
  • 在linux中导入sql文件的方法分享(使用命令行转移mysql数据库)
  • mysql source 命令导入大的sql文件的方法
  • mysql导入sql文件出错的解决方法

转载请注明出处:http://www.hhy777.com/article/20230526/105038.html