How can I get automatically anchors for every h2-heading?

It is not exactly what I was looking for, but Table of Contents Plus also adds anchors to my headings.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)