• 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

DatabaseStartupException

 
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 all.

I'm having problems configuring jForum 2.1.4 on a server running Tomcat 4.0.6 and MySQL 4.0.20 and I get the following error:

net.jforum.exceptions.DatabaseStartupException: Error while trying to start the database: java.sql.SQLException: Server connection failure during transaction.
Attempted reconnect 3 times. Giving up.

The database, hostname, port, username and password are correct. Any ideas?

I'd be very grateful of any information, perhaps something I haven't checked. I can get it to work fine on a development server using Tomcat 5.5 and MySQL 4.1, but it does not work on the production server.


Thanks a million!

Barry Broom
[originally posted on jforum.net by Anonymous]
 
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
Well, there are 2 places you should look:

WEB-INF/config/database/mysql/mysql.properties

and

WEB-INF/config/jforum-custom.conf

Settings in jforum-custom.conf have priority over any other system setting, so take a look there for incorrect database configurations (and vice-versa)

Rafael
[originally posted on jforum.net by Rafael Steil]
 
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
Aha! I hadn't changed the database settings in jforum-custom.conf; it works now!

Thank you ever so much! I am using jForum as part of my MSc project at De Montfort University, Leicester, UK. I will give you credit for your help in my dissertation! See www.clubtogether.org.uk.

Thank you once again.

Barry
[originally posted on jforum.net by Anonymous]
 
Weeds: because mother nature refuses to be your personal bitch. But this tiny ad is willing:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic