sclorg / mysql-container

MySQL container images based on Red Hat Software Collections and intended for OpenShift and general usage. Users can choose between Red Hat Enterprise Linux, Fedora, and CentOS based images.
http://softwarecollections.org
Apache License 2.0
128 stars 201 forks source link

how to set the charset when i created database #245

Open YoungCh322 opened 5 years ago

YoungCh322 commented 5 years ago

when i create a database like this "docker run -d --name mysql -e MYSQL_USER=user -e MYSQL_PASSWORD=pass -e MYSQL_DATABASE=db -e MYSQL_CHAR_SET=utf8 -e MYSQL_COLLATION=utf8_unicode_ci -p 3306:3306 rhscl/mysql-57-rhel7"

but the character_set_database and character_set_server is still latin1... what should i do to solve this