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
LOAD DATA INFILE
loads a file on machine the MySQL server is running on.
Use LOAD DATA LOCAL INFILE
to load a file located on your client machine.
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...