手机
当前位置:查字典教程网 >编程开发 >php教程 >mysql5的sql文件导入到mysql4的方法
mysql5的sql文件导入到mysql4的方法
摘要:1、将mysql5里导出的sql文件导入到mysql5中。2、用mysqldump-uroot-p1234--opt--compatible...

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的方法】相关文章:

php将字符串随机分割成不同长度数组的方法

Access数据库导入Mysql的方法之一

php使用指定编码导出mysql数据到csv文件的方法

php准确获取文件MIME类型的方法

php函数重载的替代方法

Yii实现自动加载类地图的方法

php以fastCGI的方式运行时文件系统权限问题及解决方法

php生成图片缩略图的方法

php查询whois信息的方法

php实现将上传word文件转为html的方法

精品推荐
分类导航