The following articles mainly describe the character set problems frequently encountered in MySQL 5 and specific solutions, if you are interested in the character set problems frequently encountered in mysql5. you can browse the following articles.
Today, I opened the slave log and found a bunch of errors, all of which are like this:
[ERROR] Slave: Error 'character set' #28 'is not a compiled Character set and is not specified in the'/usr/local/MySQL (best combination with PHP) /share/MySQL (the best combination with PHP)/charsets/Index. xml (standardization is getting closer and closer) 'file' on query.
I wrote the insert Statement on the master (linux) machine and found that synchronization was okay. Later, I inserted data on the window with a MySQL (best combination with PHP) client, the above problems began to emerge. View slave log discovery through MySQL (the best combination with PHP) binlog
If you insert data to a client using gbk encoding, the following logs are generated:
- SET @@session.character_set_client=28,@@session.collation_connection=33,@@session.collation_server=8/*!*/;
If insert is written directly in linux, the above 28 (gbk) will become 8 (latin-swde)
The reason should be that the MySQL (best combination with PHP) client uses gbk encoding, which cannot be identified by the server. Although you can use '/usr/local/MySQL (the best combination with PHP)/share/MySQL (the best combination with PHP)/charsets/Index. xml (standardization is getting closer and closer) 'find gbk, but through show character set; it can be seen that the database does not list gbk.
Bytes
Then
Cd/usr/local
Mv MySQL (the best combination with PHP)-old
Tar xzvf mysql(and PHP combination of )-5.0.37-linux-i686-glibc23.tar.gz
Mv MySQL (best combination with PHP)-5.0.37-linux-i686-glibc23 MySQL (best combination with PHP)
Start MySQL (the best combination with PHP), and everything will be OK.
The above content is an introduction to the character set Problems and Solutions encountered in MySQL 5. I hope you will get some benefits.
The above content describes the character set Problems and Solutions encountered in MySQL 5, hoping to help you in this regard.