Home  >  Article  >  Database  >  How to set the default encoding format of data table in mysql

How to set the default encoding format of data table in mysql

王林
王林Original
2020-10-13 15:40:354111browse

Mysql method to set the default encoding format of the data table: 1. Open the my.ini configuration file; 2. Add the configuration [default-character-set=utf8]; 3. Restart the mysql service.

How to set the default encoding format of data table in mysql

Find the installation directory of mysql

(Recommended tutorial: mysql video tutorial)

# There is my-default.ini in the How to set the default encoding format of data table in mysql

## directory. I modified it to my.ini here. Open the configuration and add the following content:

How to set the default encoding format of data table in mysql

Add Content:

character-set-server=utf8
[client]
default-character-set=utf8

Then restart the Mysql service.

Related recommendations:

mysql tutorial

The above is the detailed content of How to set the default encoding format of data table in mysql. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn