How to change the default MySql sort for rake db: create: all in rails?

In my rails application, I run rake db: create: all to create the databases, and they tell me that the mappings do not match. Is there a way to change the default MySQL setting? If this is not the best way? Thanks

+3
source share
1 answer

Mapping parameters are specified in the MySQL configuration file (usually called my.cnf). It should look something like this (in the section [mysqld]):

character-set-server=utf8
collation-server=utf8_general_ci

Additional Information:

+3

Source: https://habr.com/ru/post/1745418/


All Articles