Home > Database > Mysql Tutorial > body text

mysql会员数据导入导出_MySQL

WBOY
Release: 2016-05-30 17:11:09
Original
1306 people have browsed it

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

 

旧会员导出

 

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

 

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template