I use SequelPro for MySQL on a Mac OS X. I used the import function to upload a 130k .csv file to my database. Everything seems to work fine, then I get the message:
File Read Error: An error occurred when reading the file, as it could not be read using the encoding you selected (Auto-detect – Unicode (UTF-8)). Only 23,000 rows were imported.
When I hit "Ok," everything else seems to work relatively fine, I'm just missing about 107,000 rows.
Any idea as to what it could be? Maybe I should use something other than auto-detect during the import? I thought that it might have been some extra commas floating around in the actual .csv file, which there were, but I got rid of those and the same thing happened.
Out of 130,000 rows, there's definitely the possibility for some non-English characters. Which ones doesn't MySQL accept and how would I find and replace them?
This is what I'm getting when I run the character set query:
show variables like 'character_set%';
Variable_name Value
character_set_client latin1
character_set_connection latin1
character_set_database latin1
character_set_filesystem binary
character_set_results latin1
character_set_server latin1
character_set_system utf8
character_sets_dir /usr/local/mysql-5.6.10-osx10.7-x86_64/share/charsets/
Best Answer
This may depend on where you generated the CSV file. If the CSV file was generated on a Windows machine, there could be some character set issues
See https://code.google.com/p/sequel-pro/issues/detail?id=1629
See the following URLs as SequelPro's character set problems are not new
If the CSV file was generated on another Mac OSx server, you should not be having this issue.
You may have to resort to setting the default character set to match that CSV file. Sounds weird to here it goes:
Please run this query and you will see something like this:
You can also see the character set of the database
Perhaps you should load another table that has the matching character set:
Change the whole table's character set
or change a column's character set
Then, have SequalPro load
anothertable
.I guess to be less aggressive, just change the column's character set.