MySQL has four types of blobs

Source: Internet
Author: User

First explain the type of blob, directly from the online excerpt!!!
1. MySQL has four types of blobs:
Tinyblob: Only 255 characters
blob: Maximum limit to 65K bytes
Mediumblob: Limit to 16M bytes
Longblob: Up to 4GB
2, in addition to the type of access to the file size is limited, but also to modify the MySQL configuration file.
Windows, Linux basically the same by modifying the file My.ini or my.cnf file, add max_allowed_packet=10m in the file (that is, the maximum 10m,mysql default seems to 1MB, add the first look to ensure that it is not set)
3, do the above settings, if you upload a larger file or some files are still error, such as reported some garbled, estimation is the following problem.
Database or table character set problems, such as hibernate connection using utf-8, table is GBK, etc., generally as long as you set the data connection part of hibernate, such as
Jdbc:mysql://192.168.0.4:3306/test?useunicode=true&characterencoding=utf-8

MySQL has four types of blobs

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.