MySQL5.0中文问题的实际解决方案
以下的文章主要介绍的是MySQL5.0中文问题的实际解决方案。我们是在dos 环境之下对其进行操作,如果你对MySQL5.0中文问题相关的实际操作有兴趣的话,你就可以对以下的文章点击观看了。 1.在dos环境下,用mysql --default-character-set=utf8 -u root -p 这句
以下的文章主要介绍的是 MySQL5.0中文问题的实际解决方案。我们是在dos 环境之下对其进行操作,如果你对MySQL5.0中文问题相关的实际操作有兴趣的话,你就可以对以下的文章点击观看了。
1.在dos环境下,用mysql --default-character-set=utf8 -u root -p 这句话进入mysql~~
2.mysql> show variables like 'character\_set\_%';
<ol class="dp-xml"> <li class="alt"><span><span>character_set_client utf8 </span></span></li> <li><span>character_set_connection utf8 </span></li> <li class="alt"><span>character_set_database utf8 </span></li> <li><span>character_set_results utf8 </span></li> <li class="alt"><span>character_set_server utf8 </span></li> <li><span>character_set_system utf8 </span></li> <li class="alt"> <span>mysql</span><span class="tag">></span><span> set </span><span class="attribute">character_set_results</span><span>=</span><span class="attribute-value">gbk</span><span>; </span> </li> <li> <span>mysql</span><span class="tag">></span><span> set </span><span class="attribute">character_set_client</span><span>=</span><span class="attribute-value">gbk</span><span>; </span> </li> <li class="alt"> <span>mysql</span><span class="tag">></span><span> show variables like 'character\_set\_%'; </span> </li> <li><span>character_set_client gbk </span></li> <li class="alt"><span>character_set_connection utf8 </span></li> <li><span>character_set_database utf8 </span></li> <li class="alt"><span>character_set_results gbk </span></li> <li><span>character_set_server utf8 </span></li> <li class="alt"><span>character_set_system utf8 </span></li> </ol>
3.建数据库、表,如下:
<ol class="dp-xml"> <li class="alt"><span><span>mysql</span><span class="tag">></span><span>create database demo; </span></span></li> <li> <span>mysql</span><span class="tag">></span><span>use demo; </span> </li> <li class="alt"> <span>mysql</span><span class="tag">></span><span>create table user ( id int(11) not null auto_increment primary key, </span> </li> <li> <span>name varchar(100) not Null , age int)</span><span class="attribute">type</span><span>=</span><span class="attribute-value">MyISAM</span><span>,default character set utf8; </span> </li> <li class="alt"><span>insert into user(name,age) values('本职工作',19); </span></li> <li><span>insert into user(name,age) values('张工作',22); </span></li> <li class="alt"><span>insert into user(name,age) values('王作',29); </span></li> </ol>

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Call of Duty Warzone is a newly launched mobile game. Many players are very curious about how to set the language of this game to Chinese. In fact, it is very simple. Players only need to download the Chinese language pack, and then You can modify it after using it. The detailed content can be learned in this Chinese setting method introduction. Let us take a look together. How to set the Chinese language for the mobile game Call of Duty: Warzone 1. First enter the game and click the settings icon in the upper right corner of the interface. 2. In the menu bar that appears, find the [Download] option and click it. 3. Select [SIMPLIFIEDCHINESE] (Simplified Chinese) on this page to download the Simplified Chinese installation package. 4. Return to the settings

1. How can you make money by publishing articles on Toutiao today? How to earn more income by publishing articles on Toutiao today! 1. Activate basic rights and interests: original articles can earn profits by advertising, and videos must be original in horizontal screen mode to earn profits. 2. Activate the rights of 100 fans: if the number of fans reaches 100 fans or above, you can get profits from micro headlines, original Q&A creation and Q&A. 3. Insist on original works: Original works include articles, micro headlines, questions, etc., and are required to be more than 300 words. Please note that if illegally plagiarized works are published as original works, credit points will be deducted, and even any profits will be deducted. 4. Verticality: When writing articles in professional fields, you cannot write articles across fields at will. You will not get appropriate recommendations, you will not be able to achieve the professionalism and refinement of your work, and it will be difficult to attract fans and readers. 5. Activity: high activity,

Excel spreadsheet is one of the office software that many people are using now. Some users, because their computer is Win11 system, so the English interface is displayed. They want to switch to the Chinese interface, but they don’t know how to operate it. To solve this problem, this issue The editor is here to answer the questions for all users. Let’s take a look at the content shared in today’s software tutorial. Tutorial for switching Excel to Chinese: 1. Enter the software and click the "File" option on the left side of the toolbar at the top of the page. 2. Select "options" from the options given below. 3. After entering the new interface, click the “language” option on the left

Common problems and solutions for OracleNVL function Oracle database is a widely used relational database system, and it is often necessary to deal with null values during data processing. In order to deal with the problems caused by null values, Oracle provides the NVL function to handle null values. This article will introduce common problems and solutions of NVL functions, and provide specific code examples. Question 1: Improper usage of NVL function. The basic syntax of NVL function is: NVL(expr1,default_value).

"WWE2K24" is a racing sports game created by Visual Concepts and was officially released on March 9, 2024. This game has been highly praised, and many players are eagerly interested in whether it will have a Chinese version. Unfortunately, so far, "WWE2K24" has not yet launched a Chinese language version. Will wwe2k24 be in Chinese? Answer: Chinese is not currently supported. The standard version of WWE2K24 in the Steam Chinese region is priced at 199 yuan, the deluxe version is 329 yuan, and the commemorative edition is 395 yuan. The game has relatively high configuration requirements, and there are certain standards in terms of processor, graphics card, or running memory. Official recommended configuration and minimum configuration introduction:

VSCode Setup in Chinese: A Complete Guide In software development, Visual Studio Code (VSCode for short) is a commonly used integrated development environment. For developers who use Chinese, setting VSCode to the Chinese interface can improve work efficiency. This article will provide you with a complete guide, detailing how to set VSCode to a Chinese interface and providing specific code examples. Step 1: Download and install the language pack. After opening VSCode, click on the left

Common challenges faced by machine learning algorithms in C++ include memory management, multi-threading, performance optimization, and maintainability. Solutions include using smart pointers, modern threading libraries, SIMD instructions and third-party libraries, as well as following coding style guidelines and using automation tools. Practical cases show how to use the Eigen library to implement linear regression algorithms, effectively manage memory and use high-performance matrix operations.

Tips for solving Chinese garbled characters written by PHP into txt files. With the rapid development of the Internet, PHP, as a widely used programming language, is used by more and more developers. In PHP development, it is often necessary to read and write text files, including txt files that write Chinese content. However, due to encoding format problems, sometimes the written Chinese will appear garbled. This article will introduce some techniques to solve the problem of Chinese garbled characters written into txt files by PHP, and provide specific code examples. Problem analysis in PHP, text
