How to Import Multiple csv files into a MySQL Database

后端 未结 9 1624
深忆病人
深忆病人 2020-11-30 06:14

Is there a way to import multiple csv files at the same time into a MySQL database? Some sort of batch import?

I\'m on Mac OSX running a MAMP server.

I have

9条回答
  •  天命终不由人
    2020-11-30 06:44

    Using following shell script:

    for file in /directory/*.csv
    do
    echo "Importing file $file"
           chown mysql $file
            mysql Fortinet -u user -p'password' <

提交回复
热议问题