Dependent on your ISP, the directory the database is in might be read only. I know readyhosting does this. Check with the ISP to see if there is a directory that is not read only and stick the database there.