Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

Invalid mysql database collation, expected utf8 #14

Closed
sergio-bershadsky opened this issue Mar 5, 2015 · 4 comments
Closed

Invalid mysql database collation, expected utf8 #14

sergio-bershadsky opened this issue Mar 5, 2015 · 4 comments

Comments

@sergio-bershadsky
Copy link

Seems to be the aim is utf8 database, but some reason it is latin instead.

berngp added a commit that referenced this issue Mar 6, 2015
The MySQL configuration file now enables UTF8 by default.

```
skip-character-set-client-handshake
collation-server      = utf8_unicode_ci
character-set-server  = utf8
```

Reference http://dev.mysql.com/doc/refman/5.0/en/charset-server.html

[ticket: #14]: Invalid mysql database collation, expected utf8.
@berngp
Copy link
Owner

berngp commented Mar 6, 2015

@nikitinsm just pushed a branch which forces the MySQL DB to UTF8. Need to test things out but feel free to give it a try.

@berngp berngp closed this as completed in d4b4fb4 Mar 9, 2015
@sergio-bershadsky
Copy link
Author

It still latin1 fields caused of the mysql dump I think not my.ini config

for t in $(mysql --user=zabbix --password=zabbix  --database=zabbix -e "show tables";);do echo "Altering" $t;mysql --user=zabbix --password=zabbix --database=zabbix -e "ALTER TABLE $t CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;";done

This solves problem you can add it after db dump is fully loaded

@berngp
Copy link
Owner

berngp commented Mar 18, 2015

Thanks Sergey,
I'll follow you advice.
Cheers

On Sat, Mar 14, 2015 at 11:44 PM, Sergey Nikitin notifications@github.com
wrote:

It still latin1 fields caused of the mysql dump I think not my.ini config

for t in $(mysql --user=zabbix --password=zabbix --database=zabbix -e "show tables";);do echo "Altering" $t;mysql --user=zabbix --password=zabbix --database=zabbix -e "ALTER TABLE $t CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;";done

This solves problem you can add it after db dump is fully loaded


Reply to this email directly or view it on GitHub
#14 (comment).

@sergio-bershadsky
Copy link
Author

BTW I have installed zabbix directly (without docker) from deb and DB is utf-8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants