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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -