You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
750 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

mysqlimport
===
为MySQL服务器用命令行方式导入数据
## 补充说明
**mysqlimport命令** 为mysql数据库服务器提供了一种命令行方式导入数据工具它从特定格式的文本文件中读取数据插入MySQL数据库表中。
### 语法
```
mysqlimport(选项)(参数)
```
### 选项
```
-D导入数据前清空表
-f出现错误时继续处理剩余的操作
-hMySQL服务器的ip地址或主机名
-u连接MySQL服务器的用户名
-p连接MySQL服务器的密码。
```
### 参数
* 数据库名:指定要导入的数据库名称;
* 文本文件:包含特定格式文本文件。
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->