Code Monkey home page Code Monkey logo

Comments (3)

aminotsukasa avatar aminotsukasa commented on August 16, 2024

Hi srna
I have a same problem for japanese user.
I create a branch with mysqld additional_mysqld_config function.

this is a usage sample code changing mysqld character_set_server.

$ export ADDITIONAL_MYSQLD_CONF="[mysqld]\ncharacter-set-server=utf8\ncollation-server=utf8_general_ci
$ dokku mysql:create japanese-test
$ cat  /var/lib/dokku/services/mysql/japanese-test/config/additional_mysqld_config.cnf
[mysqld]
character-set-server=utf8
collation-server=utf8_general_ci

$ dokku mysql:enter japanese-test mysql -u mysql -p japanese-test -e "SHOW VARIABLES LIKE  'char%';"
+--------------------------+----------------------------+
| Variable_name            | Value                      |
+--------------------------+----------------------------+
| character_set_client     | latin1                     |
| character_set_connection | latin1                     |
| character_set_database   | utf8                       |
| character_set_filesystem | binary                     |
| character_set_results    | latin1                     |
| character_set_server     | utf8                       |
| character_set_system     | utf8                       |
| character_sets_dir       | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+

source code is here .
https://github.com/aminotsukasa/dokku-mysql/tree/option_mysql_conf

josegonzalez
Can I send pull request with this branch?

from dokku-mysql.

srna avatar srna commented on August 16, 2024

Hi aminotsukasa

Thank you so much for this patch. I myself made a patch inspired by your, having just utf8 as the charset. I made also a pull request, but it is not likely that they accept it. Serves me well, though.

My repo is https://github.com/srna/dokku-mysql

Thanks.
Tomas

from dokku-mysql.

josegonzalez avatar josegonzalez commented on August 16, 2024

#62 is up, and closes this. I have a clarifying question, otherwise it'll def be merged in. It is a pretty sane default imo.

from dokku-mysql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.