For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > August 2005 > PHP/MySQL Variables









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PHP/MySQL Variables
Martin A. Weinberger

2005-08-13, 3:59 am

Hey all,

I have to increase the maximum packet length from the standard 1MB to a
higher value. I saw the MySQL manual says to set the

max_allowed_packet

variable. It's one thing to say "max_allowed_packet=32M". It's another thing
to do it through source code at runtime. How do I do that? Thanks in
advance? I saw one example somewhere that said to do
"mysql --max_allowed_packet=32M" from the MySQL command prompt. My problem
here is that I'm in source code. I scanned the PHP MySQL functions and don't
see any execute or variable set. The mysql_options() function doesn't have
this particular variable.

Thanks a lot in advance.

--
Martin A. Weinberger
ButterflyVista
http://www.butterflyvista.com/


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com