mysql5的sql文件導(dǎo)入到mysql4的方法
更新時間:2008年10月19日 11:51:30 作者:
有時候用到將高版本的數(shù)據(jù)庫轉(zhuǎn)移到低版本的數(shù)據(jù)庫中,下面是mysql5數(shù)據(jù)轉(zhuǎn)到mysql4的方法
1、將mysql5里導(dǎo)出的sql文件導(dǎo)入到mysql5中。
2、用mysqldump -uroot -p1234 --opt --compatible=mysql40 -A -re:\localhost.sql
--compatible=name參數(shù)描述如下:
--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導(dǎo)入mysql4,如mysql命令行中
source e:\localhost.sql
2、用mysqldump -uroot -p1234 --opt --compatible=mysql40 -A -re:\localhost.sql
--compatible=name參數(shù)描述如下:
--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導(dǎo)入mysql4,如mysql命令行中
source e:\localhost.sql
您可能感興趣的文章:
- MySQL高效導(dǎo)入多個.sql文件方法詳解
- MySQL導(dǎo)入csv、excel或者sql文件的小技巧
- MYSQL導(dǎo)入導(dǎo)出sql文件簡析
- mysql導(dǎo)入sql文件報錯 ERROR 2013 2006 2002
- MySQL導(dǎo)入導(dǎo)出.sql文件及常用命令小結(jié)
- mysql導(dǎo)入sql文件命令和mysql遠(yuǎn)程登陸使用詳解
- 在linux中導(dǎo)入sql文件的方法分享(使用命令行轉(zhuǎn)移mysql數(shù)據(jù)庫)
- mysql source 命令導(dǎo)入大的sql文件的方法
- mysql導(dǎo)入sql文件出錯的解決方法
相關(guān)文章
php+mysql實(shí)現(xiàn)的無限分類方法類定義與使用示例
這篇文章主要介紹了php+mysql實(shí)現(xiàn)的無限分類方法類定義與使用,結(jié)合實(shí)例形式分析了php+mysql無限分類方法類基本定義與使用方法,需要的朋友可以參考下2020-05-05php XPath對XML文件查找及修改實(shí)現(xiàn)代碼
php XPath對XML文件查找及修改實(shí)現(xiàn)代碼,需要的朋友可以參考下。2011-07-07用php實(shí)現(xiàn)的下載css文件中的圖片的代碼
非常有創(chuàng)意的利用php獲取css中圖片地址并實(shí)現(xiàn)下載的代碼。2010-02-02PHP面向?qū)ο蟪绦蛟O(shè)計__tostring()和__invoke()用法分析
這篇文章主要介紹了PHP面向?qū)ο蟪绦蛟O(shè)計__tostring()和__invoke()用法,結(jié)合實(shí)例形式分析了__tostring()和__invoke()功能、用法及相關(guān)操作注意事項,需要的朋友可以參考下2019-06-06php文件打包 下載之使用PHP自帶的ZipArchive壓縮文件并下載打包好的文件
php文件打包 下載之使用PHP自帶的ZipArchive壓縮文件并下載打包好的文件2012-06-06實(shí)例講解通過PHP創(chuàng)建數(shù)據(jù)庫
在本篇文章里小編給大家分享了關(guān)于如何通過​PHP創(chuàng)建數(shù)據(jù)庫的知識點(diǎn)內(nèi)容,有需要的朋友們學(xué)習(xí)下。2019-01-01