LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 11-19-2012, 04:30 AM   #1
suresh.k
Member
 
Registered: Aug 2011
Location: Hyderabad, AP, India
Distribution: centos, Ubuntu
Posts: 163
Blog Entries: 1

Rep: Reputation: Disabled
Not able to restore mysql --all-database backup file


Hi,

I have taken backup of all mysql databases using following command,
#mysqldump -uroot -p --all-databases > test.sql
successfully backup completed.

Here when iam restoring test.sql into another server iam getting problem, i have executed below command to restore databases.
#mysql -uroot -p < test.sql

Error:ERROR 2006 (HY000) at line 7255: MySQL server has gone away

Thanks
Suresh
 
Old 11-19-2012, 05:52 AM   #2
arun5002
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 548
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Error:ERROR 2006 (HY000) at line 7255: MySQL server has gone away

1.Did you check whether mysql server is running .If its running . Increase the max_allowed_packet value in your mysql configuration and then restart then try to restore the dump backup


To backup mysql database with stored procedures and triggers
#mysqldump -uroot -p --all-databases --routines > test.sql
 
Old 11-19-2012, 06:42 AM   #3
suresh.k
Member
 
Registered: Aug 2011
Location: Hyderabad, AP, India
Distribution: centos, Ubuntu
Posts: 163
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Hi Arun,
Works Fine..

Thank you.

I also have an issue on PPTP VPN in linux,
I posted it on this forum also but no replay's,
Can u please look into that.

Here the link http://www.linuxquestions.org/questi...ly-4175437222/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] mysql will not restore database moodah Linux - Server 2 02-22-2011 03:02 PM
how to create backup MYSQL Script to backup my database for every 1hour RMLinux Linux - Newbie 3 11-20-2008 10:13 AM
mysql database restore help compused Linux - General 3 10-28-2008 04:48 PM
Oracle 10 G Database Backup & Restore rajaniyer123 Linux - Software 1 07-02-2006 11:21 PM
Had to restore database from backup - about 5 minutes lost jeremy LQ Suggestions & Feedback 0 01-21-2001 10:31 PM


All times are GMT -5. The time now is 11:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration