Method for modifying the max_allowed_packet attribute of MySQL 5.5

Source: Internet
Author: User

To modify the max_allowed_packet attribute of MySQL 5.5, the following error is reported when an experiment system is deployed: your 'max _ allowed_packet 'variable is set to less than 16777216 Byte (16 MB ). it is easy to understand, that is, you need to modify the MySQL configuration file, but here is a tip (in Windows 7 ): if you directly use notepad or notepad ++ to open my. ini, it will prompt that the file is occupied by other programs, or access is denied (for example, "please check if this file is opended in another program "). If the MySQL service has been stopped, it is not a problem of program occupation. The solution is also very simple. First, cut my. ini elsewhere under the MySQL 5.5 installation directory, and then ask the Administrator to continue. Then, there are many and my In the installation directory of MySQL 5.5. ini similar files, such as my-small.ini, use the Administrator identity to start a text editing software (such as notepad ++. ini and my-small.ini are open, copy these lines in the my-small.ini: [plain] [mysqldump] quick max_allowed_packet = 16 M to my. in the INI file, you can save it successfully. Copy the file to the MySQL 5.5 installation directory as an administrator to achieve our goal. That's simple. record it.

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.