?
Solved

MySQL Restore issues

Posted on 2011-05-12
3
Medium Priority
?
350 Views
Last Modified: 2012-05-11
Good afternoon,
Ive been backing up my MySQL databases like a good boy every night, and archiving them off onto DVD, with no errors. Now I need to restore, and its all going wrong.

When I try and restore my database it seems to work for the first few seconds, and then get the message:-
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id:    143
Current database: tonelm2_odm

ERROR 2006 (HY000): MySQL server has gone away
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id:    144
Current database: tonelm2_odm

Open in new window


The database Im trying to restore does have blobs in, but I have already tried to increase the packet size with no sucess.

Any ideas whats going on, or even better how to fix it?

Thank you in advance
0
Comment
Question by:tonelm54
  • 2
3 Comments
 
LVL 18

Expert Comment

by:Andrej Pirman
ID: 35749927
What is the format of your backups? Are they .SQL files with full insert statements?
0
 

Accepted Solution

by:
tonelm54 earned 0 total points
ID: 35749948
Yes, Ive just found the issue which I dont really understand!

In my my.ini file I have 2 entries for "max_allowed_packet", one (which I set) was 100M, the other was 1M, I changed the 1M to 100M restarted my service, and it restored easily!

Hmm, all very strange!

0
 

Author Closing Comment

by:tonelm54
ID: 35775520
Found the answer
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month14 days, 22 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question