mysql5的sql文件导入到mysql4的方法
更新时间:2008年10月19日 11:51:30 作者:
有时候用到将高版本的数据库转移到低版本的数据库中,下面是mysql5数据转到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
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
相关文章
PHP swoole中http_server的配置与使用方法实例分析
这篇文章主要介绍了PHP swoole中http_server的配置与使用方法,结合实例形式分析了swoole中swoole_http_server类的功能及http_server的配置、创建服务相关使用技巧,需要的朋友可以参考下2020-03-03
php addslashes 利用递归实现使用反斜线引用字符串
以下是对php中利用递归实现使用反斜线引用字符串的方法进行了详细的分析介绍,需要的朋友可以过来参考下2013-08-08


最新评论