Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use UTF-8 character set and collation when creating OpenMRS database #136

Open
githengi opened this issue Oct 16, 2019 · 1 comment
Open

Comments

@githengi
Copy link
Contributor

githengi commented Oct 16, 2019

Use UTF-8 character set and collation when creating OpenMRS database.

The maria db databases was installed with wrong collation and thus it was not possible to import names on Thai character set set.

When database are created using RDS also the character set need to be UTF-8.

Run the below queries to update the collation for the database
ALTER DATABASE openmrs COLLATE = 'utf8_general_ci';

Run the below queries to generate the commands to update the collation for all the tables
SELECT CONCAT('ALTER TABLE ', TABLE_NAME,' CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;') FROM INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA='openmrs';

@jasonrogena
Copy link
Contributor

jasonrogena commented Oct 16, 2019

I think this can be achieved by specifying the collation in this task. The default collation can be set to utf8_general_ci;

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

No branches or pull requests

2 participants