Page 1 of 1

Failed Export?

PostPosted: 24. May 2010 21:32
by oliwally
SOLVED - see below

I'm working on a Drupal site and have exported the sql using the configuration found at http://drupal.org/node/81993
All sweet - this has always worked for me.
However, when I now try to import this database, either in Linux or Windows, it fails. Message given is:
Code: Select all
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
Fatal error: Allowed memory size of 8388608 bytes exhausted (trie' at line 1

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 560201 bytes) in /opt/lampp/phpmyadmin/libraries/export/sql.php on line 948


Am I assuming correctly that it is not the import that is the problem, but the export somehow didn't go well?

I have done this lots of times over the years and it's always worked. What am I doing wrong now?

I've spent hours trying - please help.

Using XAMPP 1.7.1 because my Drupal installation agrees with this better than more recent versions

PS - I speak German but it's a bit rusty. Feel free to reply in German. After 25yrs in Oz, English is easier :)

Re: Failed Export?

PostPosted: 24. May 2010 21:36
by Altrea
oliwally wrote:PS - I speak German but it's a bit rusty. Feel free to reply in German. After 25yrs in Oz, English is easier :)

Maybe its easier for you to post your thread in the english part of the board?

Re: Failed Export?

PostPosted: 25. May 2010 12:48
by oliwally
No, please go ahead and reply in either language - I'm desperate.

Ohne hilfe komme ich nicht weiter. Ich habe keine ahnung was das Ploblem ist. Es hat immer funktioniert, und ohne dass ich etwas geaendert habe funktioniert's jetzt nicht mehr.

Re: Failed Export?

PostPosted: 25. May 2010 13:18
by Altrea
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 560201 bytes) in /opt/lampp/phpmyadmin/libraries/export/sql.php on line 948


Dies ist eine PHP-Fehlermeldung die entsteht, weil das in der php.ini festgelegte memory_limit überschritten wurde. Das Script bricht ab der eingestellten Grenze automatisch ab.
8388608 bytes sind 8MB, was ziemlich wenig ist (zum Vergleich: in der Standardkonfiguration von XAMPP 1.7.3 ist der Anfangswert auf 128MB gesetzt, bei XAMPP 1.7.1 waren es noch 32MB).

Da stößt du bei Exports schnell an die Speichergrenze.

Welche XAMPP-Version setzt du ein?

Kurzfristige Lösung des problems:
memory_limit in der php.ini anpassen (sofern das deine Hardware zulässt).

Re: Failed Export?

PostPosted: 25. May 2010 14:11
by oliwally
SOLVED!
Vielen Dank Altrea!

Auf deinen Hinweis habe ich nocheinmal nachgeguckt was mit meinem php.ini los ist - und ja, tatsaechlich, memory limit war zu klein. Ich fuehle mich wie ein Idiot!.... Wie oft habe ich da schoneinmal geguckt - aber diesmal war's irgendwie zu klein. :oops:

Ich habe mich auch durch das Wort 'export' verwirren lassen. Ich war mir nicht im klaren dass das php limit auch beim exportieren der database wichtig ist.

Na ja, au jeden fall ist jetzt alles heil.

Habe dann auch noch dieses gefunden was es ganz klaar macht: http://drupal.org/node/207036

Welche XAMPP-Version setzt du ein?


XAMPP 1.7.1 - weil das mit meiner Drupal installation besser hin haut.

For those who don't speak/read German - I didn't check my memory limits well enough!! Doh!!!
I applied all the settings found in the link listed above, and all was well - sigh....

Re: Failed Export?

PostPosted: 25. May 2010 15:50
by Altrea
Nichts zu Danken. Freut mich, dass ich dir helfen konnte :D