What should I do if phpcms cannot add a column?
Solution to PHPCMS error when adding a column
MYSQL error: Got a packet bigger than ‘max_allowed_packet’ bytes
When using longtext type to perform data entry, this exception will sometimes be thrown,
The literal understanding is that the current package size exceeds the package size set by the mysql system and the operation cannot be performed.
Explain the package size: simply put, mysql regards the currently executed mysql statement as a package,
The limit on the size of this package is the length of the current mysql statement limits.
Solution:
(1) Under Linux:
Enter the server path/etc and find my.cnf. In the mysqld section inside,
find max_allowed_packet = Size
Modify to the appropriate size and save, then restart the mysql server. If this line does not exist, add this line.
(2) Under Windows:
Enter the mysql installation path, find the my.ini file, and add a sentence in the [mysqld] section (it is useless if it is not in this section):
set-variable=max_allowed_packet=size. After saving, restart the mysql service.
By the way: The size setting can be written directly to 10M, 20000K or the like under Linux
But under Windows it can only be converted into byte.
PHP Chinese website, a large number of free PHPCMS tutorials, welcome to learn online!
The above is the detailed content of What should I do if phpcms cannot add a column?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Atom editor mac version download
The most popular open source editor

SublimeText3 Linux new version
SublimeText3 Linux latest version

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),