BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Migrating to MySQL 5 problems

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
iain
Guest





PostPosted: Thu Mar 29, 2007 7:22 pm    Post subject: Migrating to MySQL 5 problems Reply with quote



Hi All

We have a MySQL 3.23 database that we've upgraded to MySQL 5.

Problem is now some queries that worked on MySQL 3.23 now fail on MySQL 5
with the error:

"unknown column xxx in on clause".

Reading about the above problem it seems that the response is "MySQL has
changed the way it interprets joins, change your queries". Problem with this
is we've got hundreds of queries with joins.

Has anyone else come across this and how did they overcome it? Is there a
patch available for this problem?

TIA
iain
Back to top
Dan Cumpian
Guest





PostPosted: Fri Mar 30, 2007 5:50 pm    Post subject: Re: Migrating to MySQL 5 problems Reply with quote



On 3/29/2007 9:22:53 AM, "iain" wrote:
Quote:
Hi All

We have a MySQL 3.23 database that we've upgraded to MySQL 5.

Problem is now some queries that worked on MySQL 3.23 now fail on
MySQL 5 with the error:

"unknown column xxx in on clause".

Reading about the above problem it seems that the response is "MySQL
has changed the way it interprets joins, change your queries". Problem
with this is we've got hundreds of queries with joins.

Has anyone else come across this and how did they overcome it? Is
there a patch available for this problem?

TIA
iain



No, there is no patch for this. The recommended method for upgrading from
such an old version of MySQL to 5.x is to dump your database using
MySQLdump, un-install the old version, install the new version, then use
MySQLimport to reload the database. This will properly convert datatypes
as needed for MySQL 5.

However, MySQL 5 is very different from 3.x, so you *will* have to
determine why certain joins no longer work and change the queries
accordingly. The jump to MySQL 5.x is not to be taken lightly.

Regards,
Dan
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.