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

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

王林
Release: 2020-10-13 15:40:35
Original
4301 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template