Home >Database >Mysql Tutorial >mysql会员数据导入导出_MySQL

mysql会员数据导入导出_MySQL

WBOY
WBOYOriginal
2016-05-30 17:11:091324browse

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

 

旧会员导出

 

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`);

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn