mysql - LOAD DATA INFILE not working inside BASH SCRIPT -
i new ssh ,trying laod csv files through bash script using load data infile syntax using bash script
here script:
mysql -u $mysql_username -p$mysql_password -d $mysql_database \ load data local infile '$file_tr_hi' table trans_hist_test \ fields terminated ',' lines terminated '\r\n';
this script runs fine individually. mean outside script. when include in script, throws error
load command not found
how can fix this?
try provide full path mysql
/usr/local/mysql/bin/mysql -u ...
Comments
Post a Comment