Upgrading from 0.8.6.2 to 0.9.0.10 (8030 to 8050): mysql pb

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    b2evolution Forum Index -> Obsolete Forum Threads
View previous topic :: View next topic  
Author Message
ptitmain
New Poster
New Poster

Joined: 17 Nov 2003
Posts: 2
Reputation: 30Reputation: 30Reputation: 30 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Wed Jul 14, 2004 10:08    Post subject: Upgrading from 0.8.6.2 to 0.9.0.10 (8030 to 8050): mysql pb Reply with quote

Hi,

I am trying to upgrade b2. But when using the installer to migrate the databases, I have this trouble:

V?rification de la version du sch?ma BD... 8030 : OK.
Creating table for Antispam Blackist... OK.
Creating default blacklist entries... OK.
Upgrading Settings table... OK.
Upgrading blogs table... OK.
Creating table for Groups... OK.
Creating default groups... OK.
Creating table for Blog-User permissions... OK.
Creating user blog permissions... OK.
Upgrading users table... OK.
Assigning user groups... OK.
Upgrading settings table... OK.
Creating DB schema version checkpoint at 8050...

Erreur MySQL!

Unknown column 'set_name' in 'where clause'(Errno=1054)

Your query:
UPDATE evo_settings SET set_value = '8050' WHERE set_name = 'db_version'

I can restore my database, but I do not know that to do to solve that. So I need some help...

JFL
Back to top
View user's profile Send private message
blueyed
Core Developer
Core Developer

Joined: 10 Nov 2003
Posts: 1849
Reputation: 172.3Reputation: 172.3 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 18

PostPosted: Wed Jul 14, 2004 17:18    Post subject: Reply with quote

replace the function set_upgrade_checkpoint at top of install/_functions_evoupgrade.php with this:

Code:
function set_upgrade_checkpoint( $version )
{
   global $DB;

   echo "Creating DB schema version checkpoint at $version... ";

   if( $version < 8060 )
   {
      $query = 'UPDATE T_settings SET db_version = '.$version;
   }
   else
   {
      $query = "UPDATE T_settings
                        SET set_value = '$version'
                        WHERE set_name = 'db_version'" );
   }
   $DB->query( $query );

   echo "OK.<br />\n";
}

_________________
.\|/. Create rainforest .\|/. | daniel.hahler.de | Ubuntu Linux
Back to top
View user's profile Send private message Visit poster's website
ptitmain
New Poster
New Poster

Joined: 17 Nov 2003
Posts: 2
Reputation: 30Reputation: 30Reputation: 30 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Thu Jul 15, 2004 3:45    Post subject: It works ! Reply with quote

Thanks a lot !

Just an error here:
$query = "UPDATE T_settings
SET set_value = '$version'
WHERE set_name = 'db_version'" );

To transform in:
$query = "UPDATE T_settings
SET set_value = '$version'
WHERE set_name = 'db_version'";

And it's ok, the database was upgraded. Thanks a lot for the quick answer !

Checking DB schema version... 8030 : OK.
Creating table for Antispam Blackist... OK.
Creating default blacklist entries... OK.
Upgrading Settings table... OK.
Upgrading blogs table... OK.
Creating table for Groups... OK.
Creating default groups... OK.
Creating table for Blog-User permissions... OK.
Creating user blog permissions... OK.
Upgrading users table... OK.
Assigning user groups... OK.
Upgrading settings table... OK.
Creating DB schema version checkpoint at 8050... OK.
Creating table for Locales... OK.
Upgrading posts table... OK.
Converting langs to locales for evo_posts...
Converting lang 'fr' to locale 'fr-FR'
Converting lang 'en' forced to default locale 'en-US'
Upgrading blogs table... OK.
Converting langs to locales for evo_blogs...
Converting lang 'fr' to locale 'fr-FR'
Converting settings table... OK.
Upgrading Comments table... OK.
Upgrading Users table... OK.
Creating DB schema version checkpoint at 8060... OK.
Checking for extra quote escaping in posts... OK.
Creating DB schema version checkpoint at 8062... OK.
Checking for extra quote escaping in comments... OK.
Creating DB schema version checkpoint at 8064... OK.

Upgrade completed successfully!
Back to top
View user's profile Send private message
fplanque
Core Developer
Core Developer

Joined: 13 Jun 2003
Posts: 831
Reputation: 186.6Reputation: 186.6 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 9

PostPosted: Fri Jul 16, 2004 13:20    Post subject: Reply with quote

I'm wondering if we should release a 0.9.0.11 with this fix included... Big Razz
_________________
François - Rambling on... State of the Evolution - fplanque.com
b2evolution project maintainer / main developer

Follow b2evolution on twitter and become a fan of b2evolution on facebook
Back to top
View user's profile Visit poster's website
Graham
Expert
Expert

Joined: 14 Jun 2003
Posts: 727
Reputation: 53.8Reputation: 53.8Reputation: 53.8Reputation: 53.8Reputation: 53.8 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Fri Jul 16, 2004 19:03    Post subject: Reply with quote

Just put it into the current 0.9.0.10 package - those that already have upgraded with no problems don't need it anyway...
_________________
tin-men - it's not that awful.

Honest.*

*Not really

Please use the search and manual.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
sselden
New Poster
New Poster

Joined: 20 Jun 2004
Posts: 22
Reputation: 39.5Reputation: 39.5Reputation: 39.5Reputation: 39.5 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Sun Aug 01, 2004 1:25    Post subject: Reply with quote

I think there's more to this fix than that, as I tried both:
1.Running install script and getting the problem mentioned above
2.editing the install script with replacement function and rerunning it
=
I still got errors

I then uninstalled everything and reinstalled my old version, then ran the 9.0.10 install script with the change. I still got errors and was unable to upgrade.

(I am testing upgrading on a testing server before I upgrade my real blog which is why it's easy for me to keep starting from scratch.)

If there is a fix for this problem could you post step by step directions?
thank you,
sharon

_________________
I'm not really a geek, I just play one on tv.
Back to top
View user's profile Send private message Visit poster's website
sselden
New Poster
New Poster

Joined: 20 Jun 2004
Posts: 22
Reputation: 39.5Reputation: 39.5Reputation: 39.5Reputation: 39.5 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Sun Aug 01, 2004 1:26    Post subject: Re: It works ! Reply with quote

ptitmain wrote:
Thanks a lot !

Just an error here:
$query = "UPDATE T_settings
SET set_value = '$version'
WHERE set_name = 'db_version'" );

To transform in:
$query = "UPDATE T_settings
SET set_value = '$version'
WHERE set_name = 'db_version'";

And it's ok, the database was upgraded. Thanks a lot for the quick answer !


What does it mean "to transform in" does that mean there are additional changes I need to make to the install script to get it to work?

_________________
I'm not really a geek, I just play one on tv.
Back to top
View user's profile Send private message Visit poster's website
sselden
New Poster
New Poster

Joined: 20 Jun 2004
Posts: 22
Reputation: 39.5Reputation: 39.5Reputation: 39.5Reputation: 39.5 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Sun Aug 01, 2004 1:39    Post subject: Reply with quote

this is the error I get when i add the code from above:
Parse error: parse error, unexpected T_STRING in <path edited out>/_functions_evoupgrade.php on line 23

This is the code I added:
Code:
function set_upgrade_checkpoint( $version )
 {
 ? ?global $DB;

 ? ?echo "Creating DB schema version checkpoint at $version... ";

 ? ?if( $version < 8060 )
 ? ?{
 ? ?? ?$query = 'UPDATE T_settings SET db_version = '.$version;
 ? ?}
 ? ?else
 ? ?{
 ? ?? ?$query = "UPDATE T_settings
 ? ?? ?? ?? ?? ?? ?? ?? ?SET set_value = '$version'
 ? ?? ?? ?? ?? ?? ?? ?? ?WHERE set_name = 'db_version'";
 ? ?}
 ? ?$DB->query( $query );

 ? ?echo "OK.<br />\n";
 }

_________________
I'm not really a geek, I just play one on tv.
Back to top
View user's profile Send private message Visit poster's website
Topanga
Forum Mom
Forum Mom

Joined: 14 Jun 2003
Posts: 1426
Reputation: 123.5 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 12

PostPosted: Sun Aug 01, 2004 5:25    Post subject: Reply with quote

There is also the same error when upgrading from 0.8.7 (the one that yellowtip installs.

My sollution was at that point to install a new version (not upgrading) but if you have real posts in it, that it is a pain in the ass (I do have a 0.8.6 version running somawhere, but at this point I'm not updating yet)

_________________
www.tenderfeelings.net (english) - www.tenderfeelings.be (nederlands) - www.hungryfeelings.be (nederlands)

Help on a forum is a work of 'paying it forward'
We help you and then you help another one..
Back to top
View user's profile Send private message Visit poster's website
fplanque
Core Developer
Core Developer

Joined: 13 Jun 2003
Posts: 831
Reputation: 186.6Reputation: 186.6 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 9

PostPosted: Sun Aug 01, 2004 16:09    Post subject: Reply with quote

There is a bug in 0.9.0.10 "copenhagen" that prevents seemless upgrade from older versions (prior to 0.8.9).

If you encounter this problem, please use this specially fixed "0.9.0.10b" release instead:

http://prdownloads.sourceforge...p?download

And please let us know how it works for you. Wink

_________________
François - Rambling on... State of the Evolution - fplanque.com
b2evolution project maintainer / main developer

Follow b2evolution on twitter and become a fan of b2evolution on facebook
Back to top
View user's profile Visit poster's website
sselden
New Poster
New Poster

Joined: 20 Jun 2004
Posts: 22
Reputation: 39.5Reputation: 39.5Reputation: 39.5Reputation: 39.5 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Sun Aug 01, 2004 19:46    Post subject: Reply with quote

Problem solved. I have not yet tried on my "real" blog, but I was able to upgrade my testing set-up in -- about 5 mins!! WHOOO-HOOO!
_________________
I'm not really a geek, I just play one on tv.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    b2evolution Forum Index -> Obsolete Forum Threads All times are GMT - 5 Hours
Page 1 of 1


 
Jump to:  
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
b2evolution Support Forum RSS Feed Forums powered by php Bulletin Board