First, enter: 1.sp_: ProgramFilesMySQLMySQLServer5.5bin2 in dos mode. mysql-h127.0.0.1 (address of the host you want to access)-uroot (username)-proot (password) 3. showvariableslikecharacter %; you can view the mysql encoding format. This completes viewing the encoding format in your mysql.
Enter: 1.cd C: Program FilesMySQLMySQL Server 5.5bin 2 in dos mode. mysql-h127.0.0.1 (address of the host you want to access)-uroot (User Name)-proot (password) 3. show variables like 'character % '; you can view the mysql encoding format. This completes viewing the encoding format in your mysql.
Enter the following in dos mode:
1. cd C: Program FilesMySQLMySQL Server 5.5bin
2. mysql-h127.0.0.1 (address of the host you want to access)-uroot (User Name)-proot (password)
3. show variables like 'character % ';
You can view the mysql encoding format.
This completes viewing the encoding format in your mysql. If you want to modify the encoding format, continue with the following steps:
Open the mysql installation directory, which contains a my. ini file. Open this file, which contains two character set settings. The default setting is Latin. We recommend that you change the settings, such as utf8 or gbk.
Then start the mysql service. The default Character Set of the database created later is OK.
(Enable Service Control of MySQLAdministrator during restart .)