• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Major problem when upgrading from Mysql 4 to Mysql 5

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

We just upgraded our database servers from mysql 4.0.20 to 5.0 and now Jforum is not working.

I've edited the mysql.properties file and commented out the unicode lines (2 of them).

When I start tomcat in the demontools logs I see the following error when going to the main page.



I'm confused and unsure how to fix, I have updated the driver in the lib folder to latest connector for mysql (5.0.4).
[originally posted on jforum.net by amir]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So what I'd like to know is has anyone gone from a live installation of JForum from using mysql4 to mysql5 and was it without issue?
[originally posted on jforum.net by amir]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you executed mysql_upgrade?

http://dev.mysql.com/doc/refman/5.0/en/mysql-upgrade.html
[originally posted on jforum.net by lazee]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That page wont load for me, i suspect its my inet connection.

Anyway the problem is solved. The issue is that there is binary incompatability with using mysqlhotcopy files. The solution is to use mysqldump to dump [b]sql[/b[ files and then "source" these files into the new empty database in mysql. all works fine :-)

In my case in one table there is a row with text "....appear int he KPI's and no" .. but when using the hotdumps the corrupted text looks like this



Use SQL files and its all good

Thanks for the swift response anyhow, nice to see a helpful and active community
[originally posted on jforum.net by amir]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
had to also change the connection string as the driver was complaining about truncation.... now reads


[originally posted on jforum.net by amir]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for this information.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Arthur, where are your pants? Check under this tiny ad.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic