Hi,
I've just moved a database from one host to another. Both are using mysql5.
I'm getting errors when I create new blogs, and visually comparing table structures I note that the old database had its autoincrement flags turned on whereas the new one doesn't.
It's trying to insert values of '0' in autoincrement columns, these are being taken literally instead of being allocated the next number.
I was getting errors:
ALTER TABLE wp_blogs
CHANGE blog_id
blog_id
BIGINT( 20 ) NOT NULL DEFAULT '0' AUTO_INCREMENT MySQL said: #1067 - Invalid default value for 'blog_id'
To test my theory I changed the structure:
ALTER TABLE wp_blogs
CHANGE blog_id
blog_id
BIGINT( 20 ) NOT NULL DEFAULT NULL AUTO_INCREMENT
This worked, but it would be risky to do this manually with every table.
Is there a tool or mode that can check the structure of the database?
I've run the wp-admin/wpmu-upgrade-site.php tool already.
If not, is there a process I can use on the old install to export every blog user so that I can restore it through the interface rather than through mysql?
Advice much appreciated,
Martin.