NamelessMC

Internet Explorer

Internet Explorer is not supported. Please upgrade to a more modern browser.

[Solution] SQL Connection Error Shared Hosting
Started by Morphtato

Morphtato

Morphtato

Member
Joined
04 Aug 2016
Last Seen
12 Nov 2018
Topics
3
Posts
4
From https://github.com/NamelessMC/Nameless/issues/478, thanks to @Sandtato
 

Type: Issue Fix

Issue Desc.: SQL Connection Error, Shared Hosting.

Description: Recently, my entire server network, including website, went offline due to a CloudFlare issue. Working with my web hoster's support team, we found this fix, which I think may be helpful to others on Shared Hosting, or even on their own web server. The fix involves a different SQL link, which usually can be requested from your Web Hoster's support team if necessary. The new link or IP they may give you will usually be routed directly to the SQL server, and not through CloudFlare or other proxies.

The fix is as follows:

  1. Go to your FTP, and access [websiteinstallationdirectory]/core/
  2. Open config.php, and find the MySQL host.
  3. Replace your current link the with new one, which you should have received from your web host support team.
  4. Save and re-upload the config, if necessary.

It may take a moment, but your website should come back online. This fix helped me bring my site much faster than waiting for the CloudFlare fix to sync over. I think this will help many others as well, therefore I posted this.

x1
Morphtato · over 6 years ago
Morphtato

Morphtato

Member
Joined
04 Aug 2016
Last Seen
12 Nov 2018
Topics
3
Posts
4
Sweet, was going to re-post here anyways. Thanks @Samerton
Morphtato · over 6 years ago