command line - mysql sql file import dump with apostrophes -


i have sql database dump 8mb , trying import via commandline below code:

mysql -uroot -p dbname < dbnamedump.sql 

i have 1 copy of file , can not export again database , getting below errors:

error 1064 (42000) @ line 29675: have error in sql syntax; check manual corresponds mysql server version right syntax use near 's dining room', '-33.922318', '18.417137', '133 bree street', '', 'cape town', '' @ line 5 

i realise issue apostrophes not sure how work around , data in, replace ' \'

any thoughts please?

thanks

john.

it looks have embedded quote. 1 of string values has quote inside it. guy:

's dining room 

you need double quotes when generating sql.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -