I have a 350 Mb mysql sql file I'm trying to run locally against a remote MySQL instance that I have confirmed access to. My command is this:
"C:\Program Files\MySQL\MySQL Server 5.6\bin\mysql" -h camp****.com -u cam****aigns --password=Camp****** cam****igns < "E:\mypath\Camp****19-2020.sql"
It mostly works, but every 5000-10000 lines or so, I encounter an error like the following:
ERROR 1366 (HY000) at line 9320: Incorrect string value: '\xC3\xBD350 ...' for column 'Address1' at row 1
Line 9320 (you can see the special character):
INSERT INTO `Contacts` VALUES (33413,390,'Jim','Hancock','ý350 E 100 N','','Hampton','UT','84050','2012-06-25 15:11:49');
I've seen a number of stack posts that talk about changing ini/cnf settings, etc. But what is the easiest, most straightforward way to make this 1 cmd-line script execution work? Are there command-line args I can pass in, maybe specifying UTF-8 or something?
show create table yourtablenameto your question (for the table that's getting the error)