Remarks on setting blob storage images in mysql

Source: Internet
Author: User
Remarks 1) blob fields are used to store binary data in mysql. BLOB is a type series, including TinyBlob, BLOB, MediumBlob, and LongBlob, the only difference between these types is that the maximum size of the stored files is different. TinyBlob Max 255Blob Max 65 KMediumBlob

Remarks 1) blob fields are used to store binary data in mysql. BLOB is a type series, including TinyBlob, BLOB, MediumBlob, and LongBlob, the only difference between these types is that the maximum size of the stored files is different. TinyBlob Max. 255 Blob Max 65 K MediumBlob

Remarks on setting blob storage images in mysql
1) BLOB fields are used to store binary data.

In MySQL, BLOB is a type series, including TinyBlob, Blob, MediumBlob, and LongBlob. The only difference between these types is that the maximum size of the stored files varies.

TinyBlob Max. 255
Blob Max 65 K
MediumBlob up to 16 MB
Up to 4 GB LongBlob

2) MySQL max_allowed_packet settings

Show VARIABLES like '% max_allowed_packet % ';


Set global max_allowed_packet = 2*1024*1024*10;


After setting, exit the command line and log on again. It seems that the value of the system variable will be cached after logon.

Reference http://www.kuqin.com/database/20120622/320977.html

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.