Report issue Add example

mysqlimport

Command-line tool for importing data into a MySQL server

Description

The mysqlimport command provides a command-line interface for importing data into a MySQL database server. It reads data from text files with a specific format and inserts it into MySQL database tables.

Syntax

mysqlimport [options] [database_name] [text_file]

Options

-D: Empty the table before importing data.
-f: Continue processing remaining operations even if errors occur.
-h: Hostname or IP address of the MySQL server.
-u: Username used to connect to the MySQL server.
-p: Password used to connect to the MySQL server.

Parameters