If you're using PostgreSQL it's pretty much gone, as it unlinks the file. You'd have to use some kind of file recovery util and hope nothing's overwritten the file yet.
Not sure at all about mysql recoverability, but I'd be surprised if it was any different.