Home > Database > Mysql Tutorial > body text

How to solve mysql garbled code using cmd

coldplay.xixi
Release: 2020-09-30 14:08:47
Original
2475 people have browsed it

cmd method to solve mysql garbled characters: 1. Modify cmd character set method, the code is [rem switch to UTF-8]; 2. Set cmd to display MySQL character set method, the code is [set names utf8 rem setting into GBK].

How to solve mysql garbled code using cmd

cmd method to solve mysql garbled code:

1. Modify cmd character set method

rem 切换到UTF-8
chcp 65001
rem 切换到默认的GBK
chcp 936
rem 美国英语
chcp 437
Copy after login

2. Method of setting cmd to display MySQL character set

rem 设置成utf8
set names utf8
rem 设置成GBK
set names gbk
Copy after login

3. Solution

cmd character set is the default gbk. In the MySQL login state, set the cmd character set of MySQL to gbk. MySQL Chinese is normal. Show

More related free learning recommendations: mysql tutorial(Video)

The above is the detailed content of How to solve mysql garbled code using cmd. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
cmd
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!