mysql - Sql errror when running LOAD DATA LOCAL INFILE on AWS with RDS -


i have ubuntu webserver on aws communicating mysql server on aws rds. keep getting error sql when running ubuntu server. ideas why having problem. ideas why sql failing?

basically i'm trying load file onto mysql server. need able achieve bash programatically.

$(mysql -h "$host" --user="$user" --password="$pw" --local-infile=1 -d"$dbname" --skip-column-names -e "load data local infile '/html/results/f9_result.jtl' table `result.jtl` fields terminated ',' lines terminated ' ' ignore 1 lines;") 

error message:

"you have error in sql syntax; check manual corresponds      mysql server version right syntax use near 'terminated ',' lines terminated ' ', ignore 1 lines' @ line 1" 

escaping ticks suggested resolved problem sql

$(mysql -h "$host" --user="$user" --password="$pw" --local-infile=1 -d"$dbname" --skip-column-names -e "load data local infile '/html/results/f9_result.jtl' table `result.jtl` fields terminated ',' lines terminated ' ' ignore 1 lines;") 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -