Home > Database > Mysql Tutorial > How to set MySql encoding format using command line

How to set MySql encoding format using command line

coldplay.xixi
Release: 2020-12-14 14:48:58
Original
2426 people have browsed it

How to use the command line to set the MySql encoding format: first log in to mysql and enter [SHOW VARIABLES LIKE 'character_set_%']; then check whether the value value is utf8, if not, use SET settings; finally complete Can.

How to set MySql encoding format using command line

The operating environment of this tutorial: Windows 7 system, mysql version 8.0. This method is suitable for all brands of computers.

Related free learning recommendations: mysql database(Video)

##Use How to set the MySql encoding format on the command line:

1. Log in to mysql

How to set MySql encoding format using command line

2. Enter

SHOW VARIABLES LIKE 'character_set_%';

How to set MySql encoding format using command line

3. Check whether the value is utf8, if not, use SET to set it.

How to set MySql encoding format using command line

4. Enter

SHOW VARIABLES LIKE 'character_set_%'; Check again to confirm.

How to set MySql encoding format using command line

5.Finally exit; Complete

The above is the detailed content of How to set MySql encoding format using command line. 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