Skip to content

Instantly share code, notes, and snippets.

@nikosd
Created October 21, 2011 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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