RSS feed rewrite matching wrong rule

The solution was to modify my regex slightly in my add_rewrite_rule.

The rule was ^/mining-civil-engineering/news-events/feed/ and now reads
^/mining-civil-engineering/news-events/(feed|rss2)/?$

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