How to capture data from an attached CSV file and save it to a database

In this example we show step-by-step how to capture the data from a CSV file and insert it to a MySQL table