mysql从文件中导入数据
2016-04-25 16:32
537 查看
linux:
load data infile '/tmp/dnslog.txt' into table dnslog_cnnic_cn fields terminated by ' ' lines terminated by '\n';
windows:
load data local infile 'd:\dnslog_daily_nodes_total.sql' into table dnslog_cnnic_cn_nodes_total fields terminated by ' ' lines terminated by '\n';
load data infile '/tmp/dnslog.txt' into table dnslog_cnnic_cn fields terminated by ' ' lines terminated by '\n';
windows:
load data local infile 'd:\dnslog_daily_nodes_total.sql' into table dnslog_cnnic_cn_nodes_total fields terminated by ' ' lines terminated by '\n';
相关文章推荐
- Mysql数据库备份和还原常用的命令
- MySQL数据库管理常用命令
- MySql中添加用户,新建数据库,用户授权,删除用户,修改密码
- mysql自带test库的相关特性
- MySQL锁
- ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'
- mysql新的一天重新累加计数(新的一天重新自增长)
- mysql服务器查询慢原因分析方法
- mysql服务器查询慢原因分析方法
- MySQL(七) —— MySQL存储过程 & 存储引擎
- PHP同时连接多个mysql数据库示例代码
- mysql命令大全
- MySQL中concat函数(连接字符串)
- (重装MySQL)ubuntu中/var/runmysqld/mysqld.sock 问题E: Sub-process /usr/bin/dpkg returned an error code
- mysql 聚集函数 count 使用详解
- MySQL 5.5版本解决中文乱码问题时my.ini内[mysqld]项中不能再写default-character-set=utf8
- mac下mysql的端口号3307修改
- mysql,REPLACE INTO()
- mysql 远程访问-权限
- mysql的基本操作