Problem with "packet bigger than 'max_allowed_packet' error" - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Databases - MySQL, SQL, Oracle, Access and others

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 12-25-2011, 11:55 AM   #1 (permalink)
Junior Member
 
Join Date: Dec 2011
Posts: 1
Default Problem with "packet bigger than 'max_allowed_packet' error"

Hi
I am running an update to a database and I keep getting this error:

Quote:
Could not Insert to CB_MAIN (update)Got a packet bigger than 'max_allowed_packet' bytes
And it is from this code:

PHP Code:
$result_upd mysql_query($sql_upd) or write_error("Could not Insert to CB_MAIN (update)".mysql_error()." \r\n"); 
The write_error() function writes to a log and on line no. 79,870 I get that error.

Searched and read this:

Quote:
You probably have to change it for both the client (you are running to do the import) AND the daemon mysqld that is running and accepting the import.
But didn't understand it.
My system is as follows:

Operating system CentOS Linux 6.0
Perl version 5.010001
Path to Perl /usr/bin/perl
BIND version 9.7.0
Postfix version 2.6.6
Apache version 2.2.15
PHP version 5.3.2
Webalizer version 2.21-02
Logrotate version 3.7.8
MySQL version 5.1.52

Would much appreciate it if some would help me by telling me what config files need to be changed and where they might be.

Thanks.
jeddiki is offline   Reply With Quote
Sponsored Links
Old 12-30-2011, 02:26 PM   #2 (permalink)
Regular User
 
Join Date: Jul 2005
Posts: 47
Default Re: Problem with "packet bigger than 'max_allowed_packet' error"

Login to your mysql server to increase the size limits.

# mysql -u admin -p

mysql> set global net_buffer_length=1000000;
Query OK, 0 rows affected (0.00 sec)


mysql> set global max_allowed_packet=1000000000;
Query OK, 0 rows affected (0.00 sec)
sandman is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 08:19 AM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting