Can I use localhost as my database hostname? Print

  • 0

No. On FariHost hosting, databases run on dedicated database servers, separate from the web servers. This makes websites faster and more reliable, but it means localhost won't work.

Find your database hostname

Open your control panel: log in to the FariHost Client Area, go to Services → My Services, choose your hosting plan and click Login to Control Panel.

  1. Open the MySQL Databases section.
  2. The hostname is listed with your database. It looks similar to shareddb-x.hosting.stackcp.net.
  3. Copy it exactly into your website's settings file, for example DB_HOST in WordPress's wp-config.php.

If you installed WordPress with our one-click installer, this is already set correctly.

Need help?

Open a support ticket from your FariHost Client Area or message us on WhatsApp and our team will help you.


Was this answer helpful?

« Back