During a recent setup of MySQL (a product I don’t really know anything about), I ran into an odd issue. After the installation, SharePoint Foundation 2013 stopped working. All sites including Central Administration started having an issue…
The dreaded “Sorry, something went wrong” error instead of actual content being loaded.
The SharePoint logs recorded lines with an error of:
Application error when access /SitePages/Home.aspx, Error=Access denied for user ”@’localhost’ (using password: NO)
After some searching online, there were several threads mentioning that new entries are created in the machine.config file by the MySQL install.
I went to find and comment out these lines.
The one exception was the runtime lines were mentioned as perhaps being needed, so I skipped those ones.
Then it started working again, so yayyers! Also after fixing it using this method, I also read some pages suggesting the real root cause was one of the MySQL components that writes to machine.config by default, and that this can be changed via Programs and Features if needed. The “MySQL Connector NET 6.9.8” (or whichever version you have) has a sub-feature called “Web Providers”. If you uninstall this, that supposedly also removes these troublesome entries.
Some of the pages that pointed me in the right direction: