Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20th February 2007, 11:04 PM
TheOlster Offline
Registered User
 
Join Date: Mar 2005
Posts: 72
Problem importing MySQL db with PHPMyAdmin

I'm trying to import a mysql db using phpmyadmin. But I get the following error:
Quote:
ERROR: Unknown Punctuation String @ 6
STR: />
SQL:
<br />
<b>Fatal error</b>: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4592571 bytes) in
I tried increasing the memory_limit to over 60M in php.ini (and restarting httpd) but I still get the same error.

The leads me to wonder if MySQL has a memory limit? If so how do I increase this?

Thanks...
Reply With Quote
  #2  
Old 21st February 2007, 03:47 AM
bytesniper's Avatar
bytesniper Offline
Registered User
 
Join Date: May 2005
Location: Abq, NM
Age: 35
Posts: 1,158
If you are trying to import a database that was exported with something like mysqldump (basically a big text file) i would use the command line instead of myphpadmin

-from the command line as root type 'mysql -p' and log in
-in mysql type 'create database foo' or whatever the name is and then exit
-back at the prompt type 'mysql -u root -p password foo < dumpfile.sql'

done deal. as far as memory limits in mysql, yes, there are buffer limits depending on the type of database (isam, innodb, etc) but you would have to look through your my.cnf to figure out which one may be causing the problem (there are many).

also keep this in mind, importing a database that was exported in, let's say, mysql4 might not import into a mysql5 server.

hth,
joseph
__________________
I am root. If you see me laughing you better have a backup.
Reply With Quote
  #3  
Old 21st February 2007, 09:15 AM
TheOlster Offline
Registered User
 
Join Date: Mar 2005
Posts: 72
Many thanks, the db was exported to .gz using phpmysql (MySQL 5) and is being imported using exactly the same setup.

I could use the command line, but I'd like to find out what this error is all about...?
Reply With Quote
  #4  
Old 21st February 2007, 10:05 AM
TheOlster Offline
Registered User
 
Join Date: Mar 2005
Posts: 72
OK how do I uncompress localshost.sql.gz ?
Reply With Quote
  #5  
Old 1st March 2007, 06:42 PM
bytesniper's Avatar
bytesniper Offline
Registered User
 
Join Date: May 2005
Location: Abq, NM
Age: 35
Posts: 1,158
if its a standard gz file then you would use gunzip, something like the following command:
Code:
gunzip -cd localshost.sql.gz
which will leave you with localhost.sql (leaving localhost.sql.gz unchanged) and from there you should be able to pipe it into sql using the directions from my first post.

Note: backup localhost.sql.gz to a safe place before you start messing around with it, just in case.
__________________
I am root. If you see me laughing you better have a backup.

Last edited by bytesniper; 1st March 2007 at 06:47 PM.
Reply With Quote
  #6  
Old 4th March 2007, 03:10 PM
TheOlster Offline
Registered User
 
Join Date: Mar 2005
Posts: 72
Hmmm... I tried that and get:
Quote:
$ gunzip -cd localhost.sql.gz

gunzip: localhost.sql.gz: not in gzip format
Any ideas?
Reply With Quote
  #7  
Old 6th March 2007, 06:02 PM
daverj Offline
Registered User
 
Join Date: Jan 2006
Location: Denver, CO USA
Posts: 670
Code:
gunzip -d
should be
Code:
gunzip
or
gzip -d
the -d switch is to decompress. gunzip does not use the -d switch since gunzip means decompress

davidj
Reply With Quote
Reply

Tags
importing, mysql, phpmyadmin, problem

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
MySQL/phpMyAdmin problem vks Servers & Networking 3 28th August 2009 12:54 PM
MySQL + phpMyAdmin problem cmk1523 Using Fedora 0 25th June 2008 07:37 PM


Current GMT-time: 05:23 (Saturday, 25-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