How to set the default character-set?

前端 未结 3 1774
后悔当初
后悔当初 2020-12-20 12:30

I want to create a new db in mysql. I set utf8 as the default-character-set, but when I attempted to restart the db, mysql failed to restart and posted the following prompt:

3条回答
  •  旧巷少年郎
    2020-12-20 12:42

    I had a similar problem. The answer, as EO2 pointed out, is that default-character-set is deprecated in 5.5. You should use instead:

    character-set-server = utf8
    

    BTW, it's better if answers are answered as answers, not comments... ;-)

提交回复
热议问题