I now have a sql file, the content of which is gbk. Now my display is full of garbled characters.
It can only be displayed using mysql 4.0.26.
It cannot be displayed even if you use 4.1 or above. The head is big. I hope you all can give me some advice, and I’m very grateful.
I have now installed mysql 5.0.22.
I changed the character set in my.ini to gbk, and used the status command to display that they are all gbk. Then I used the source command to import the sql file, but it still no. Before querying, I used set names gbk, set names utf8, set names latin1. Everything showed garbled characters.
Using mysql -uroot -ppassword database
-- MySQL dump 10.10
--
-- Host: localhost Database: system
----------------------- ----------------------------------
-- Server version 5.0.22-community-nt
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION= @@COLLATION_CONNECTION */ ;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/ *!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*
I am speechless. I hope you can give me some advice. Thanks.