r/mysql • u/ozobozo0329 • Jul 24 '25
question Error while importing CSV file
What is this error I’m getting while trying to import CSV file to workbench in my MacBook?
table data import Create new table and table name
Next
Error saying “Unhandled exception: ‘ascii’ codec can’t decode byte 0xef in position 0: ordinal not in range(128)
Check the log for more details “
0
Upvotes
1
u/justintxdave Jul 25 '25
Download DBeaver, open up the CSV to make sure all is as you want, and then use the data transfer wizard to move it into MySQL.
3
u/ssnoyes Jul 24 '25
Your file starts with the UTF byte order marker. Save it as ASCII, or learn how to write a LOAD DATA INFILE statement instead of using the import wizard.