"packet bigger than 'max_allowed_packet' bytes"

"packet bigger than 'max_allowed_packet' bytes"

Posted by: Arbok
Posted on: 2006-03-26 15:56:00

Ok, I have been trying to restore a 140 MB phpBB database since yesterday with my new DreamHost account to no luck. I'm trying to do it with a program called BigDump.php, as I'm told it was the most straight forward way to upload it.

So, I have FTP'ed the backup SQL to the site, and then run the BigDump.php file only to meet this error:

"MySQL: Got a packet bigger than 'max_allowed_packet' bytes

Stopped on error"

I'm probably missing something very easy that I needed to do first, not sure. Or is there a setting somewhere to increase the 'max_allowed_packets', or is that against the rules?

Thanks in advance.

Command line works fine

Posted by: sdayman
Posted on: 2006-03-26 18:06:00

If your database is empty, I use this method:
/usr/bin/mysql -uUSERNAME -hHOSTNAME databasename < dumpfile

-Scott

Re: Command line works fine

Posted by: Arbok
Posted on: 2006-03-26 18:22:00

"If your database is empty, I use this method:
/usr/bin/mysql -uUSERNAME -hHOSTNAME databasename < dumpfile"

I would, but I'm using a subdomain at the moment as I haven't refigured the Nameservers until everything is working, so I don't think that command line would work for this current situation.

Thanks though... if it would, then perhaps I'm going about this all the wrong way.

Re: Command line works fine

Posted by: matttail
Posted on: 2006-03-26 20:31:00

>/usr/bin/mysql -uUSERNAME -hHOSTNA...

just an FYI sdayman, you don't need to specify the /usr/bin/mysql - all you need is mysql. That is the case for most commands at the terminal.



-Matttail

Re: Command line works fine

Posted by: sdayman
Posted on: 2006-03-27 17:33:00

Should someone screw up their $PATH, full path *always* works.

-Scott

Tags: ftp edphp filemaxdreamhostbackup sqlstraight forwarduploadphpbbluckmysql