设为首页 加入收藏

TOP

mysql会员数据导入导出
2015-11-21 03:26:25 来源: 作者: 【 】 浏览:10
Tags:mysql 会员 数据 导入 导出
系统迁移或者更换的时候用到的,特别注意里面的引号,很容易弄错了。
?
旧会员导出
?
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`);
?
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇mac下安装mysql的方法 下一篇MySQL 存储过程实例

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: