Mysql default character set (installation free)

  • 2020-05-07 20:35:23
  • OfStack

Take mysql-noinstall-5.0.22-win32 as an example. After unzipping, you will see 5 files in ini format under the folder mysql-5.0.22-win32. Copy my-medium.ini and rename it my.ini. Open my.ini and add default-character-set =gb2312 under [client] and [mysqld]. The implication is to set gb2312 as the default character set for the database. The myqsl service needs to be restarted after the setup.
Similarly, other character sets can be set to the default character set.

Related articles: