SpawN

mysql4.1数据导入mysql 5

by SpawN on 九.08, 2008, under Mysql

热度:

1.从源数据库导出文件
mysqldump –default-character-set=latin1 -uroot -ppassword -n –opt –skip-set-charset databasename>d:\1.sql;
2.将1.sql使用EDITPLUS打开,转换编码为utf-8,也可以使用其他的工具
3.新建立UTF-8编码的数据库test
4.执行以下sql,将数据导入到新数据库中,mysql -u root -p –default-character-set=utf8 test<1.sql

另:如何将mysql5的sql文件导入到mysql4?


相关博文

:

Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!