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:
mysql> show variables like 'character_set%';
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | latin1 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | latin1 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.00 sec)
mysql>
You can also see the character set of the database
mysql> show create database mydb\G
*************************** 1. row ***************************
Database: mydb
Create Database: CREATE DATABASE `mydb` /*!40100 DEFAULT CHARACTER SET latin1 */
1 row in set (0.00 sec)
mysql>
Perhaps you should load another table that has the matching character set:
CREATE TABLE anothertable LIKE mytable;
Change the whole table's character set
ALTER TABLE anothertable CONVERT TO CHARACTER SET charset_name [COLLATE collation_name];
or change a column's character set
ALTER TABLE anothertable MODIFY col1 CHAR(50) CHARACTER SET utf8;
Then, have SequalPro load anothertable
.
I guess to be less aggressive, just change the column's character set.
I'd recommend trying the restore process suggested in the Microsoft Docs - https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-migrate-sqlpackage
It looks like this may help:
RESTORE DATABASE AdventureWorks
FROM DISK = '/var/opt/mssql/backup/AdventureWorks2014.bak'
WITH MOVE 'AdventureWorks2014_Data' TO '/var/opt/mssql/data/AdventureWorks2014_Data.mdf',
MOVE 'AdventureWorks2014_Log' TO '/var/opt/mssql/data/AdventureWorks2014_Log.ldf'
GO
Hope this helps with the path issue you're running into.
Best Answer
Is this SQL Server on a VM or Azure SQL Database / Azure SQL Managed Instance ? Probably one of the last 2 as you could just use a backup to restore to SQL on a VM, If you find the import runs to slow just scale up your machine until the import is completed