Error establishing database connection

All morning my website kept saying “Error establishing database connection” when I tried to access it. Now the website appears to be functioning well, but does anyone know why it happened? I read another forum about it, saying that it was a problem on the DreamHost’s servers side. Is it going to happen again?[hr]