LOAD DATA INFILE on remote machine

前端 未结 2 1029
情深已故
情深已故 2021-02-04 02:04

How would I do the following command, with a local file, on a remote database (different machine) ?

$MYSQL_PATH/mysql -u root -h remote.net files -e \"
    LOAD          


        
2条回答
  •  灰色年华
    2021-02-04 02:42

    Don't forget to include --local-infile=1 when doing this:

    $MYSQL_PATH/mysql -u root -h remote.net files --local-infile=1 -e "
        LOAD DATA LOCAL INFILE...
    

提交回复
热议问题