aspose file tools*
The moose likes JForum and the fly likes migration from MySql 4.1 to MySql 5.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "migration from MySql 4.1 to MySql 5.0" Watch "migration from MySql 4.1 to MySql 5.0" New topic
Author

migration from MySql 4.1 to MySql 5.0

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I'm trying to migrate database from:
mysql Ver 14.7 Distrib 4.1.20, for redhat-linux-gnu (i386) using readline 4.3
to
mysql Ver 14.12 Distrib 5.0.37, for redhat-linux-gnu (i686) using readline 5.0

sql script migrate success.. encoding is correct..
but Jforum shows this:

com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column 'forum_id' in 'field list'
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)


[originally posted on jforum.net by sae]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
This can't be simple due a database version migration. There are problems with your JForum installation. It looks like you did't run some upgrade script when upgrading from an older version of JForum (or, when converting the table from one version of mysql to another, something happened that corrupted a table... hard to say)

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
it's funny but i install under FC7 MySQL 4.1 the same version as FC4 has.
I copy database files directly! from FC4, and copy tomcat with working copy of Jforum from FC4.
AND! I have the same exception

16:04:28,803 ERROR [ForumStartup ] Unable to bootstrap JForum repository.
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column 'forum_id' in 'field list'
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1403)
at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.jav
a:92)
[originally posted on jforum.net by sae]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hey Sae,

I am having the same problem... Have to migrate data from Mysql 4.1 to 5.0, and I'm getting an 'Unknown Column' Error, even though the column is defined in the table, and getMetadata also prints it. Plus, when I decided to not update this column, i.e. removed it from the query string, I still get an Error, saying this field not found.

Please let me know how you solved your problem

-inno
[originally posted on jforum.net by inno]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
No idea I'm migrate to PhpBB, and lost all data from jforum...
[originally posted on jforum.net by sae]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: migration from MySql 4.1 to MySql 5.0