Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

Releases: cloudposse-archives/mysql_fix_encoding

5.1

08 Jan 16:34

Choose a tag to compare

Fix typos in README. Add changing default charset for database (#7)

5.0

09 Nov 12:18
2703c34

Choose a tag to compare

5.0

What

  • Fix bug when fields that was in utf8 but belong to table in latin1 was converted
  • Added option to switch between conver ways latin1 -> binary -> utf8 and latin1 -> utf8
  • Provided way to specify mysql connection command (with MYSQL env var)
  • Made silent mysql warning - mysql: [Warning] Using a password on the command line interface can be insecure.
  • Made utf8 encoding as option (allow conversion to utf8mb4 for example)

Why

  • Save time on running script. Prevent bugs related to convert utf8 to latin1.
  • Sometimes latin1 -> binary -> utf8 corrupts data. To select what way is better - do experiments
  • mysql --defaults-file={my.cnf file} sometimes is not useful way to join mysql (for example when you need to do that with docker container). Now you can use MYSQL env var to specify command to connect mysql
  • When mysql connects with custom command (see above) we can get warning mysql: [Warning] Using a password on the command line interface can be insecure. that breaks script output. We made it silent
  • Sometimes utf8mb4 is more effective than utf8.

4.1

09 Oct 06:51

Choose a tag to compare

4.1
Fix constrains creation (#5)

4.0: Add Support for Constraints / Update Docs (#4)

04 Oct 19:28

Choose a tag to compare

* Support constraints

* Added simple readme

* Update README.md

* Update README.md