I've added a debug message to the admin login. It appears your server has a database issue. I think if you give that error to your hosting administrator they should be able to look into it for you. It doesn't appear to be a problem with the code itself unless your database ip address itself is wrong.