What is blob,mysql blob size configuration Introduction _mysql

Source: Internet
Author: User
A blob is a large file, a typical blob is a picture or a sound file and, due to their size, must be handled in a special way (for example, uploading, downloading, or storing to a database). According to Eric Raymond, the main idea for dealing with blobs is to let the file processor (such as the database Manager) ignore what the file is, and instead care about how to handle it. However, some experts stressed that this method of dealing with large data objects is a double-edged sword, it may cause some problems, such as the storage of binary files too large, the performance of the database will be degraded. Storing large multimedia objects in a database is a typical example of application processing blobs.

MySQL blob type

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

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

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.