mysql5的sql文件導入到mysql4的方法
更新時間:2008年10月19日 11:51:30 作者:
有時候用到將高版本的數(shù)據(jù)庫轉移到低版本的數(shù)據(jù)庫中,下面是mysql5數(shù)據(jù)轉到mysql4的方法
1、將mysql5里導出的sql文件導入到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導入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導入mysql4,如mysql命令行中
source e:\localhost.sql
相關文章
WordPress開發(fā)中用于標題顯示的相關函數(shù)使用解析
這篇文章主要介紹了WordPress開發(fā)中用于標題顯示的相關函數(shù)使用解析,講解了single_cat_title函數(shù)和get_the_title函數(shù)和the_title函數(shù)的用法,需要的朋友可以參考下2016-01-01
PHP swoole中http_server的配置與使用方法實例分析
這篇文章主要介紹了PHP swoole中http_server的配置與使用方法,結合實例形式分析了swoole中swoole_http_server類的功能及http_server的配置、創(chuàng)建服務相關使用技巧,需要的朋友可以參考下2020-03-03
php addslashes 利用遞歸實現(xiàn)使用反斜線引用字符串
以下是對php中利用遞歸實現(xiàn)使用反斜線引用字符串的方法進行了詳細的分析介紹,需要的朋友可以過來參考下2013-08-08
linux環(huán)境apache多端口配置虛擬主機的方法深入介紹
本篇文章是對linux環(huán)境apache多端口配置虛擬主機的方法進行了詳細的分析介紹,需要的朋友參考下2013-06-06

