Migrating problems...

Having trouble installing serendipity?
Post Reply
wientanz
Posts: 2
Joined: Fri Jun 23, 2006 12:26 am

Migrating problems...

Post by wientanz »

Hi!

I had Serendipity running on my home server (where it worked perfectly), then migrated it to a whole different server. Everything worked fine. All new data got imported, the uploads folder was moved and everyting.

My Problem now is that I keep getting the following mysql error message when I try to make a new entry:

Code: Select all

INSERT INTO serendipity_entries (title,timestamp,body,extended,isdraft,allow_comments,moderate_comments,exflag,comments,last_modified,author,authorid) values ('Test', '1151014238', 'Test ', '', 'false', 'true', 'false', '0', '0', '1151014238', 'Stefan', '1')
/ Duplicate entry '0' for key 1
Any idea?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Migrating problems...

Post by garvinhicking »

Hi!

By migrating your database tables you did not seem to also migrate primary keys and auto_increment values.

Check your original SQL DB tables and set the auto_increment and primary values accordingly; or make sure your SQL dump really contains the keys and auto_increment attributes!

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
wientanz
Posts: 2
Joined: Fri Jun 23, 2006 12:26 am

Post by wientanz »

checking, checking... you're absolutely right! Damn phpmyadmin...

Thanks, that will need a little handiwork now... :-/

Thanks and thanks again!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

You're welcome. I think the easiest way would be this:

Install a completely fresh new installation on your new server. Then you will have the DB structure you need. Just empty all date and import your old data into the new structure, and you're done. :)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply