We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e124ab6 commit 6577885Copy full SHA for 6577885
edu.cuny.hunter.streamrefactoring.eval/scripts/myimport.sh
@@ -3,7 +3,7 @@ DATABASE=$1
3
TABLE=$2
4
. myimport.cfg
5
dos2unix $TABLE.csv
6
-mysql --local-infile -D $DATABASE -u $USER -p$PASSWORD -h $HOST --execute="\
+mysql --local-infile -D $DATABASE -u $USER -p$PASSWORD -h $HOST -P $PORT --execute="\
7
TRUNCATE $TABLE; \
8
LOAD DATA LOCAL INFILE '$TABLE.csv' \
9
INTO TABLE $TABLE \
edu.cuny.hunter.streamrefactoring.eval/scripts/myimport_sample.cfg
@@ -1,4 +1,5 @@
1
#!/bin/bash
2
HOST=
+PORT=
USER=
PASSWORD=
0 commit comments