Upsert data from TXT (pipe delimited text) file to MySQL

by

Want to upsert data from TXT (“|” pipe delimited text) file to MySQL ?

Upsert: inserts rows into a table if they do not already exist, or updates them if they do.

Using File To DB, a native GUI tool for Windows, MacOS, and Linux, you can upsert data from TXT (“|” pipe delimited text) file to MySQL (MariaDB, Percona) easily and fast.

  • Can run in GUI mode, Step by Step, just a few mouse clicks.
  • Can run in Command line, for Scheduled Tasks and Streams.
  • Convert locally and securely, avoid uploading large or private TXT file(s) to online services.

Download FileToDB Download FileToDB

Upsert data from TXT (“|” pipe delimited text) file to MySQL (MariaDB, Percona)

Choose MySQL and logon.

convert PIPE file to MySQL  (MariaDB, Percona) table - Choose MySQL and logon

Click “Wizard – 1 File To 1 Table” at task dialog.

convert PIPE file to MySQL  (MariaDB, Percona) table - task window

Select the “TXT” file type.

Import file data to database table - select file type

then show the wizard.

1. Open a TXT (“|” pipe delimited text) file.

Upsert Data From TXT File To MySQL  (MariaDB, Percona) - open TXT file

2. Select a table and config fields.

Set “Load Type” to “Upsert”, choice “By Key”.

Upsert Data From TXT File To MySQL  (MariaDB, Percona) - select table

3. Preview data.

Upsert Data From TXT File To MySQL  (MariaDB, Percona) - preview

4. Upsert TXT data to MySQL (MariaDB, Percona).

Upsert Data From TXT File To MySQL  (MariaDB, Percona) - Upsert data

View upserted data

Copy Data From TXT File To MySQL  (MariaDB, Percona) - view data

Upsert TXT data to MySQL in command line

Save “TXT to MySQL” session, then you can:

Set scheduled tasks for upseting TXT data to MySQL

You can schedule and automate this “TXT to MySQL” conversion task by:

1) Save session and create .bat (Windows) or .sh (Linux/macOS) file.

2) Set scheduled task.

FAQ


More about FileToDBPIPE to MySQL converter