Hi @bartelmerchess,
Im having this same issue. Where does your code go? functions.php? Thanks!
About 20 of our clients websites went down after the most recent auto update. They are all on different servers spread across a few different hosting platforms. When I visit any of these sites I get a database connection error. I didn’t ask for this software update and now we have to spend an entire day cleaning up this mess a careless developer caused. Thanks WordPress.