So if its an issue with the db, have you tried setting another db to test?

Was your wordpress working before? Or is it on a fresh install?

Cheers,
Ryan