I had the same problem. In fact, it's depend on how you are supposed to access the database.
My internet host provider gave me 2 URLs:
mysql:
jdbc://servername:port/account
and
mysql:jdbc://servernameDNS/account
I had the problem with the second, and not with the first one.
I think it's because my web site already used the first URL and JForum provide a connection pool.
So, check if you don't have concurrent access to database. Check also if you are using the last driver for both (web site and jforum).
[originally posted on jforum.net by Blackwings]