Use the mysqlimport command-line utility.
Section: imports, exports, and mysql shell utilities
Import delimited text with mysqlimport
bash
bash
mysqlimport -u root -p --local --fields-terminated-by=, app_db users.csvExplanation
`mysqlimport` is a wrapper around `LOAD DATA` semantics.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing imports, exports, and mysql shell utilities