@jilfransoi, the primary litmus test would be to verify your own ability connect, and perhaps query a table:
SELECT COUNT(*) FROM Users;
Are you running MySQL or PostgreSQL? If connectivity is not a problem, it might also be useful to dump any locked tables, but the commands are database-specific.