I've a Bamboo build script that shells out to MySQL Admin and does the following:
"C:\Program Files\MySQL\MySQL Utilities 1.6\mysqladmin" -f -h server -u user -p pwd drop db1
"C:\Program Files\MySQL\MySQL Utilities 1.6\mysqladmin" -f -h server -u user -p pwd create db1
"C:\Program Files\MySQL\MySQL Utilities 1.6\mysqldump" db2 -h server -r c:\temp\db2.sql -n --no-data -u user -p pwd
"C:\Program Files\MySQL\MySQL Utilities 1.6\mysql" -h server -D db1 -u user -p pw < c:\temp\db2.sql
The code essentially drops the db, recreates it and loads from a default DB (db2)
The problem is that db2 is the following charset/collation
Whereas the copied DB is;
This is creating a problem when our MySQL bulk loader runs and encounters certain characters in the data, such as:
MySql.Data.MySqlClient.MySqlException: Invalid utf8mb4 character string: 'TO CHARGE VOLAC '
I've spent some time on this site and Google but nothing I've tried has worked.
Could someone point me in the right direction please?