 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
iain Guest
|
Posted: Thu Mar 29, 2007 7:22 pm Post subject: Migrating to MySQL 5 problems |
|
|
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
|
Posted: Fri Mar 30, 2007 5:50 pm Post subject: Re: Migrating to MySQL 5 problems |
|
|
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 |
|
 |
|
|
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
|
|