What is blob,mysql BLOB size configuration Introduction

Source: Internet
Author: User
What is the Blob,mysql blob size configuration description font: [Increase decrease] Type: Reprint blob (binary large object), binary large object, is a container that can store binary files. In a computer, a BLOB is often the field type used to store a binary file in a database blob is a large file, a typical blob is a picture or a sound file, and due to their size, they must be handled in a special way (for example, uploading, downloading, or storing it in a database). According to Eric Raymond, the main idea of dealing with blobs is to let a file processor (such as a database manager) ignore what the file is, but rather care about how to handle it. But there are also experts who stress that the way to handle big data objects is to double-edged swords, which may cause problems such as storing binary files too large, which can degrade the performance of the database. Storing large multimedia objects in a database is a typical example of application processing blobs.

MySQL blob type

In MySQL, BLOBs are a series of types, including: Tinyblob, BLOBs, Mediumblob, Longblob, the only difference between these types is the maximum size of the storage file.
MySQL four types of blobs
Type size (units: bytes)
Tinyblob Max 255
Blob Max 65K
Mediumblob Max 16M
Longblob Max 4G

Linux Modify Etc/my.cnf
[Mysqld]
Max_allowed_packet = 16M//differs from max_allowed_packet under [mysqldump]

What is blob,mysql BLOB size configuration Introduction

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.