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
Post a Comment