当前位置:Gxlcms > mysql > mysql会员数据导入导出_MySQL

mysql会员数据导入导出_MySQL

时间:2021-07-01 10:21:17 帮助过:31人阅读

系统迁移或者更换的时候用到的,特别注意里面的引号,很容易弄错了。

旧会员导出

select 'uid','username','password','email','salt' union select

'uid','username','password','email','salt' from 'uc_members' into

outfile '/score.sql'

导入

load data infile '/score.sql'

into table `chbwzstb_users`

character set utf8

fields terminated by '\t'

lines terminated by '\n'

ignore 1 lines

(`uid`, `username`, `password`, `email`, `salt`);

人气教程排行