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

发布时间:2022-04-30 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了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

脚本宝典总结

以上是脚本宝典为你收集整理的mysql5的sql文件导入到mysql4的方法全部内容,希望文章能够帮你解决mysql5的sql文件导入到mysql4的方法所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:mysql5