mysql5的sql文件導(dǎo)入到mysql4的方法
更新時(shí)間:2008年10月19日 11:51:30 作者:
有時(shí)候用到將高版本的數(shù)據(jù)庫(kù)轉(zhuǎn)移到低版本的數(shù)據(jù)庫(kù)中,下面是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)入多個(gè).sql文件方法詳解
- MySQL導(dǎo)入csv、excel或者sql文件的小技巧
- MYSQL導(dǎo)入導(dǎo)出sql文件簡(jiǎn)析
- mysql導(dǎo)入sql文件報(bào)錯(cuò) 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ù)庫(kù))
- mysql source 命令導(dǎo)入大的sql文件的方法
- mysql導(dǎo)入sql文件出錯(cuò)的解決方法
相關(guān)文章
WordPress開(kāi)發(fā)中用于標(biāo)題顯示的相關(guān)函數(shù)使用解析
這篇文章主要介紹了WordPress開(kāi)發(fā)中用于標(biāo)題顯示的相關(guān)函數(shù)使用解析,講解了single_cat_title函數(shù)和get_the_title函數(shù)和the_title函數(shù)的用法,需要的朋友可以參考下2016-01-01
PHP swoole中http_server的配置與使用方法實(shí)例分析
這篇文章主要介紹了PHP swoole中http_server的配置與使用方法,結(jié)合實(shí)例形式分析了swoole中swoole_http_server類的功能及http_server的配置、創(chuàng)建服務(wù)相關(guān)使用技巧,需要的朋友可以參考下2020-03-03
WordPress中自定義后臺(tái)管理界面配色方案的小技巧
這篇文章主要介紹了WordPress中自定義后臺(tái)管理界面配色方案的小技巧,即使用wp_admin_css_color()函數(shù)來(lái)添加配色,需要的朋友可以參考下2015-12-12
PHP面向接口編程 耦合設(shè)計(jì)模式 簡(jiǎn)單范例
了解些面向?qū)ο蟮闹R(shí),自己寫了段代碼測(cè)試一下,歡迎高手指點(diǎn)2011-03-03
php addslashes 利用遞歸實(shí)現(xiàn)使用反斜線引用字符串
以下是對(duì)php中利用遞歸實(shí)現(xiàn)使用反斜線引用字符串的方法進(jìn)行了詳細(xì)的分析介紹,需要的朋友可以過(guò)來(lái)參考下2013-08-08
PHP 文件上傳進(jìn)度條的兩種實(shí)現(xiàn)方法的代碼
PHP 文件上傳進(jìn)度條的兩種實(shí)現(xiàn)方法的代碼...2007-11-11
用php實(shí)現(xiàn)的下載css文件中的圖片的代碼
非常有創(chuàng)意的利用php獲取css中圖片地址并實(shí)現(xiàn)下載的代碼。2010-02-02
linux環(huán)境apache多端口配置虛擬主機(jī)的方法深入介紹
本篇文章是對(duì)linux環(huán)境apache多端口配置虛擬主機(jī)的方法進(jìn)行了詳細(xì)的分析介紹,需要的朋友參考下2013-06-06

