Home Database Mysql Tutorial max-allowed-packet

max-allowed-packet

Jun 07, 2016 pm 04:41 PM
max

max_allowed_packet Mysql 5.1 遇到的信息包过大问题 用客户端导入数据的时候,遇到 错误代码: 1153 Got a packet bigger than max_allowed_packet bytes 终止了数据导入。 当MySQL客户端或mysqld服务器收到大于max_allowed_packet字节的信息包时,将发出“

max_allowed_packet

Mysql 5.1 遇到的信息包过大问题 用客户端导入数据的时候,遇到 错误代码: 1153 – Got a packet bigger than ‘max_allowed_packet’ bytes 终止了数据导入。

当MySQL客户端或mysqld服务器收到大于max_allowed_packet字节的信息包时,将发出“信息包过大”错误,并关闭连接。对于某些客户端,如果通信信息包过大,在执行查询期间,可能会遇到“丢失与MySQL服务器的连接”错误。

客户端和服务器均有自己的max_allowed_packet变量,因此,如你打算处理大的信息包,必须增加客户端和服务器上的该变量。一般情况下,服务器默认max-allowed-packet为1MB

如果你正在使用mysql客户端程序,其max_allowed_packet变量的默认值为16MB。要想设置较大的值,可用下述方式启动mysql

mysql>mysql –max-allowed-packet=32M

在my.ini也可以更改,需要重新启动mysql

在my.ini加入[mysqld]max_allowed_packet=300M

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

iPhone 15 Pro Max vs iPhone 14 Pro Max: What are the comparisons and differences between them? iPhone 15 Pro Max vs iPhone 14 Pro Max: What are the comparisons and differences between them? Sep 19, 2023 pm 08:29 PM

iPhone 15 Pro vs. iPhone 14 Pro: Specs Comparison Here is a spec comparison between iPhone 15 Pro Max and iPhone 14 Pro Max: iPhone 15 Pro Max iPhone 14 Pro Max Display size 6.7 inches 6.7 inches Display technology Super Retina 2,000 nits Dimensions 6.29x3.02x0.32 inches 6.33x3.06x0.31 inches Weight 221 grams 240 grams

How to use HEIF Max (48 MP) and optimize storage on iPhone 14 Pro How to use HEIF Max (48 MP) and optimize storage on iPhone 14 Pro Sep 21, 2023 pm 02:13 PM

The latest iPhone Pro series is equipped with a powerful 48MP sensor that ensures highly detailed and crystal clear photos to capture every precious moment. However, one potential drawback is the size of full-resolution images, especially those in ProRAW format. Although the maximum storage space offered by the iPhone is 512GB, capturing a lot of ProRAW images (about 75MP each) and video (440MB per minute, 60FPS) can quickly eat up your storage space. This can cause problems if you plan to use your iPhone as your main camera for large projects or travel. But wouldn't it be great if you could take those high-resolution 48MP photos without worrying about storage limitations? it's quick

Battery life comparison of all iPhone 15 series: iPhone 15 Plus beats 15 Pro Max Battery life comparison of all iPhone 15 series: iPhone 15 Plus beats 15 Pro Max Sep 30, 2023 pm 11:09 PM

Although Apple will launch the iPhone's video playback time to let users know that the iPhone battery is almost available. But normal users don't use their iPhone to view videos all day long. 7 iPhones tested for endurance in daily applications. Includes 7 models including iPhone15ProMax, iPhone15Pro, iPhone15Plus, iPhone15, iPhone14ProMax, iPhone14 and iPhone13ProMax. Running through some daily applications, such as Spotify, Zoom, Tiktok, Headspace, think about Apps, games, etc., we can see the battery life of different iPhones. this

How to get max value from stream in java8 How to get max value from stream in java8 May 14, 2023 pm 03:43 PM

java8's stream takes maxpublicstaticvoidmain(String[]args){Listlist=Arrays.asList(1,2,3,4,5,6);Integermax=list.stream().max((a,b)->{if (a>b){return1;}elsereturn-1;}).get();System.out.println(max);}Note: The size is determined here through positive and negative numbers and 0 values. Instead of writing it directly if(a>b){returna;}elseretur

Samsung S25 Ultra details exposed: same width as iPhone 16 Pro Max, but with a larger screen Samsung S25 Ultra details exposed: same width as iPhone 16 Pro Max, but with a larger screen Aug 23, 2024 pm 09:33 PM

According to news on August 22, as the release of Samsung’s new generation flagship mobile phone S25 Ultra approaches, more and more details are beginning to emerge. The well-known blogger @ibinguniverse revealed more specifications of the S25 Ultra on Weibo today. The most eye-catching one is that its body width is the same as the Apple iPhone 16 Pro Max, both 77.6mm. 1. Thanks to Samsung’s further optimization of the frame design, the screen size of the S25 Ultra has been increased to 6.86 inches while maintaining the same width as the iPhone 16 Pro Max, providing users with a more immersive visual experience. The blogger further pointed out in the comment area that the black edges of the S25 Ultra are better than those of the iPhone 16 Pro Max&

How to compare the size of two numbers using the Math.max() method in Java? How to compare the size of two numbers using the Math.max() method in Java? Nov 18, 2023 pm 02:29 PM

How to compare the size of two numbers using the Math.max() method in Java? In the Java programming language, the Math class is a very commonly used class and provides many mathematics-related methods. Among them, the Math.max() method can be used to compare the sizes of two numbers and return the larger number. The signature of the Math.max() method is as follows: publicstaticintmax(inta,intb) This method accepts two parameters a and b and returns the larger one.

What is the format of max? What is the format of max? Mar 13, 2023 am 11:57 AM

max is a system backup file format and also the 3DMAX original file format. max is a suffix for system backup. Like GHOST, it is a suffix for files backed up by backup and restoration software; max is also MAX, which is an autodesk 3DMAX data file and is the original 3DMAX file format. In 3dmax, model files saved in max file format only contain the model itself.

Python super practical tips to improve work efficiency Max Python super practical tips to improve work efficiency Max May 10, 2023 pm 03:19 PM

As we all know, Python is famous for its simplicity and ease of use. When faced with complex and trivial repetitive work, sometimes it is necessary to refine some small scripts to handle the repetitive work. Today, Pison Jiang has compiled ten super practical tips for you. Run it directly, it is recommended to collect it. 1. We can assign values ​​to multiple variables through lists, as long as the number of list elements corresponds to the number of variables. In[1]:list=[1,2,3]In[2]:a,b,c=listIn[3]:print(a,b,c)1232._ in interactive mode represents the previous one The output of the expression. In[4]:2*3Out[4

See all articles