Skip to content
WJunction - Webmaster Forum

How To Fix This On Dedicated Server

Status
Not open for further replies.
Hello friends,

Friends, I just got my dedi server a few days back and still playing with it. But I am facing problem that, when I tried to restore a big database around 800+MB via shell access, it shows me this error :

Code:
ERROR 1153 (08S01) at line 1850: Got a packet bigger than 'max_allowed_packet' bytes

I tried to search for the solution in Google but just got the idea that I need to edit php.ini. I tried this via my WHM but not worked for me.

Please, tell me infact guide me how to edit php.ini to solve this problem :)

Further, is there any way I could learn basic server management ?

Thanks,
 

7 comments

None of this is working for me. Because in /etc/my.conf there is only :

set-variable = max_connections=500
log-slow-queries
safe-show-database


And while using ssh mysql --max_allowed_packet=1000M the same error comes.
 
Open a mysql prompt

mysql -uroot -p

And type.
set global max_allowed_packet=1000000000;
set global net_buffer_length=1000000;

Import the database, then restart mysql.
 
Status
Not open for further replies.

About the author

M
Active Member · Joined
42
Messages
0
Reactions
6
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom