puppet-gerrit/files/my.cnf
Khai Do 438d43a542 Make mysql clients assume utf8 character encoding
Set the character encoding to utf8 for all mysql clients that run
on the gerrit server. This ensures that Gerrit maintenance activities:
mysqldump, mysql, etc.. use the correct character encoding when run locally
on the Gerrit servers.

Change-Id: I47b64ac4dd8b9a21250ff836a4dc88b41a035eeb
2015-04-17 15:09:24 -07:00

26 lines
845 B
INI

#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
# Make clients assume UTF-8 encoding
character_set_server = utf8