Skip to content

Instantly share code, notes, and snippets.

@nikosd
Created October 21, 2011 07:43
Show Gist options
  • Save nikosd/1303311 to your computer and use it in GitHub Desktop.
Save nikosd/1303311 to your computer and use it in GitHub Desktop.
Fixing 'SQL exception: Incorrect string value' on TeamCity with MySQL database
SELECT CONCAT('ALTER TABLE `', t.`TABLE_SCHEMA`, '`.`', t.`TABLE_NAME`, '` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;') as stmt
FROM `information_schema`.`TABLES` t
WHERE 1
AND t.`TABLE_SCHEMA` = 'teamcity'
ORDER BY 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment