Home  >  Article  >  Database  >  How to solve the problem of mysql blob garbled characters

How to solve the problem of mysql blob garbled characters

藏色散人
藏色散人Original
2021-12-28 11:26:535015browse

Solution to garbled mysql blob: 1. Find the my.ini file in the mysql installation directory; 2. Comment out "sql-mode="STRICT_TRANS_TABLES...""; 3. Convert the blob field type It can be of text type.

How to solve the problem of mysql blob garbled characters

The operating environment of this article: Windows 7 system, mysql version 5.5, Dell G3 computer.

How to solve the mysql blob garbled problem?

mysql data blob type Chinese garbled code

1. Find the my.ini file in the mysql installation directory

Comment out

sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

and add it in front Comment out the # symbol above,

2. Just convert the blob field type to text type.

Recommended learning: "mysql video tutorial"

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

Statement:
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