Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25th March 2012, 06:54 PM
ubersoft Online
Registered User
 
Join Date: Mar 2010
Posts: 35
linuxfirefox
MySQL import fails -- version problem?

My live server (eviscerati.org) is running on Ubuntu 10.04.01 (time to upgrade soon!) and is running mysql 5.1.61. I set up a test/dev server on a machine running Fedora 17, which is running mysql 5.5.21. I'm trying to import a database export from my live machine, and each time I try I get sql errors. Are the versions just too far apart? Is there a compatibility issue?
Reply With Quote
  #2  
Old 26th March 2012, 12:39 PM
markkuk Offline
Registered User
 
Join Date: Apr 2005
Location: Finland
Posts: 5,076
windows_7firefox
Re: MySQL import fails -- version problem?

Have you read this document: http://dev.mysql.com/doc/refman/5.5/...us-series.html ?
Reply With Quote
  #3  
Old 5th April 2012, 03:32 AM
ubersoft Online
Registered User
 
Join Date: Mar 2010
Posts: 35
linuxfirefox
Re: MySQL import fails -- version problem?

I have more information on this problem -- information that might actually be useful in solving it. So...

The problem occurs when I'm trying to import an sql file into an empty database. It first occurred in phpmyadmin but I've also tried the process in mysql directly and get the same issue (only with a terser error message).

So I'm trying to import a Drupal database into mysql via phpmyadmin on Fedora 17 (significantly this does not occur in Fedora 16, which makes me think I should have posted this in the F17 forum -- the reason I didn't was because it said "development" and this seems more like a configuration issue).

When I try to import the database I get this error:

Quote:
Error

SQL query:

-- -- Dumping data for table `cache_update` -- INSERT INTO `cache_update` (`cid`, `data`, `expire`, `created`, `headers`, `serialized`) VALUES ('update_available_releases', [RIDICULOUSLY LONG HEXADECIMAL STRING HERE]

MySQL said: \
#2006 - MySQL server has gone away
cache_update is the database table that it stops on every time.

Anyway, after doing some searching on the #2006 message I hit a lot of posts talking about the max_allowed_packet entry in the my.cnf file, which is supposed to be in the /etc directory.

Well, F17 /etc has a my.cnf file, but that file did not have max_allowed_packet -- so I decided I'd add one.

The thing is, the search results I found differed on how to add the line. Some results suggested

Code:
set-variable = max_allowed_packet=[VALUE]
and some suggested

Code:
max_allowed_packet=[VALUE]
I tried both.

The line that starts with set-variable not only doesn't work, but it doesn't even let mysql load.

The line that starts with max_allowed_packet lets mysql load, but it doesn't seem to make any difference. I went so far as to set the max_allowed_packet to 128M, which seems ridiculously large. No dice.

Does anyone know if a) max_allowed_packet is actually the problem, and b) if F17 places the specific setting in a different location that needs to be edited instead?

---------- Post added at 10:32 PM ---------- Previous post was at 08:09 PM ----------

So the answer:

1. max_allowed_packet was the problem

2. /etc/my.cnf was the file where the variable needed to be added

3. the entry needed to be max_allowed_packet = [value]

Not sure why it worked this last time and not before, but it may be a formatting issue. In the reference above, there were no spaces surrounding the "=" ...
Reply With Quote
Reply

Tags
fails, import, mysql, problem, version

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Import from Older Version of Evolution jlips Using Fedora 0 26th January 2006 10:31 PM
mysql export/import thedude Using Fedora 4 16th September 2005 07:07 AM
how to import access database into mysql embassy Using Fedora 3 5th March 2005 05:05 PM
import read fails for public key tarun_s Using Fedora 4 8th December 2004 12:38 PM


Current GMT-time: 04:53 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat