Skip to content

Conversation

@clojurians-org
Copy link
Contributor

add support for postgresql metadata and enforce utf8 encode on various machine.

it seesm mysql run on non-utf8 locale will lead to chinese messy character to display.
some chinese friend report it to me even in docker setup.

so i force the utf8 in my script.
anyway, i can enforce utf8 for database using the following statement for database setup and gms ebean connection.

echo "CREATE DATABASE datahub default character set utf8" | mysql -u root -S /nix/var/run/mysqld.sock

export EBEAN_DATASOURCE_URL="jdbc:mysql://localhost:3306/datahub?useSSL=false&useUnicode=yes&characterEncoding=UTF-8"

Copy link
Contributor

@mars-lan mars-lan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

@mars-lan mars-lan merged commit c97d3fc into datahub-project:master Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants