Does god ever change his mind?

I think the answer will have to be a big NO! Because he is infallible and does not ever need to, right? That presumably being the case, WHAT IS THE POINT OF PRAYER? Do you pray just to praise your god? That's ok, if you feel be requires constant praise. Do you pray to ask