MySQL: unicode in console by default

Recently I became tired of typing set names utf8 at the beginning of each MySQL console session. Google search quickly suggested a solution: just add

[mysql]
default-character-set=utf8

to the ~/.my.cnf file.

Explore posts in the same categories: MySQL

2 Comments on “MySQL: unicode in console by default”

  1. Wolf Says:

    good solution, before i use this:

    [mysql]
    init_connect=”SET NAMES ‘utf8′”

  2. que Says:

    Welcome to the 21st century :)


Comment: