| nanos |
|
NetHosted Customer

Joined: 11 Nov 2009 Posts: 8 Location: London, UK
|
Posted: Tue Mar 16, 2010 4:41 pm Post subject: possible to set SQL_MODE="NO_AUTO_VALUE_ON_ZERO" |
| |
Hi!
I'm trying to restore an old backup of my magento online-shop but can't quite manage.
as far as i can see the problem is that magento stores some shop-ids with auto-increment-values of 0.
And when trying to import that, the id's aren't preserved. (see this thread )
Is it possible to set SQL_MODE="NO_AUTO_VALUE_ON_ZERO" as standard?
Thanks in advance for ur help!
Oh, I should probably mention that I'm talking about the chaptertwobooks.org.uk-domain... |
|
| Back to top |
|
| NetHosted - Andrew |
|
NetHosted Staff

Joined: 22 Mar 2004 Posts: 7017
|
Posted: Tue Mar 16, 2010 4:47 pm Post subject: |
| |
Hi,
You should insert:
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
into your dump file to set this.
Thanks,
Andrew _________________ | Andrew Bassett
| Managing Director, NetHosted Ltd.
| Follow us on Twitter: http://twitter.com/nethosted
| Members, tell us what you think of NetHosted! |
|
| Back to top |
|
| nanos |
|
NetHosted Customer

Joined: 11 Nov 2009 Posts: 8 Location: London, UK
|
Posted: Tue Mar 16, 2010 4:54 pm Post subject: |
| |
thanks!
I know this. There is a problem, though: the file is quite big (7 MB, gzipped), so it's too big to use the normal phpMyAdmin-approach, because I get a timeout, before the import completes. (I've tried it.)
Instead - and because It's much more handy, anyway - I'm using a script called mysqldumper to do the backup and restore. and there I cannot edit the dump-file before I do the restore. |
|
| Back to top |
|
| NetHosted - Andrew |
|
NetHosted Staff

Joined: 22 Mar 2004 Posts: 7017
|
Posted: Tue Mar 16, 2010 5:01 pm Post subject: |
| |
In this case please upload the backup to your webspace and let us know which database you want it restored into. I will restore it for you.
Thanks,
Andrew _________________ | Andrew Bassett
| Managing Director, NetHosted Ltd.
| Follow us on Twitter: http://twitter.com/nethosted
| Members, tell us what you think of NetHosted! |
|
| Back to top |
|
| nanos |
|
NetHosted Customer

Joined: 11 Nov 2009 Posts: 8 Location: London, UK
|
Posted: Tue Mar 16, 2010 6:35 pm Post subject: |
| |
Thanks! Problem solved: Everything else via PM
(although I'd still like to be able to restore backups myself, in the future ...) |
|
| Back to top |
|
| NetHosted - Andrew |
|
NetHosted Staff

Joined: 22 Mar 2004 Posts: 7017
|
Posted: Tue Mar 16, 2010 6:40 pm Post subject: |
| |
| nanos wrote: | (although I'd still like to be able to restore backups myself, in the future
...) |
The backup uncompressed to 110MB and took around 17 minutes to complete restoring via the cli. It's not really realistic to restore these sort of backups via phpMyAdmin/cPanel.
Thanks,
Andrew _________________ | Andrew Bassett
| Managing Director, NetHosted Ltd.
| Follow us on Twitter: http://twitter.com/nethosted
| Members, tell us what you think of NetHosted! |
|
| Back to top |
|
User Permissions |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
| |