Using Python 2.6, I am trying to pickle a dictionary (for Chinese pinyin) which contains both Unicode characters in the range 128-255 and 4-byte Unicode characters. I get allergic reactions from pickle.dump() under all protocols.
Here’s a simple test program:
Code:
# Program 1 (protocol 0), program 2 (protocol 2)
PickleFile = codecs.open('PFile.utf', 'w', 'utf-8')
Str1 = u'lǘelü'
pickle.dump(Str1,
Server has gone away error when importing a large SQL file.
Hi folks,
I've searched high and low for solution. Here's the skinny:
MySQL Server 5.0 on Windows Server 2003
I have a 156MB sql file I'm trying to import using mysql -uusername -p database < dump.sql
I get an error response of: Error 2006 <HY000> at line 145: Mysql Server has gone away.
I already increase the max_allowed_pac kets to 250MB. And I've already checked the error logs and there...