Could not connect to database

If you see this error popping up on InterWorx

Could not connect to database, please check the Username/Password of your database. 

If changed, please update the details in Softaculous installations using Edit Details.


There are 2 possible solutions:

Solution 1)

Change the database host from

localhost

to

127.0.0.1

while editing the installation.


Solution 2)

nano /etc/hosts


Add the following line:

127.0.0.1 localhost.localdomain localhost


If you still have questions concerning your connection to your Softaculous database, make sure to contact us by opening a support ticket or our live chat feature.

  • 0 Users Found This Useful
Was this answer helpful?

Also Read

Official Softaculous Documentation

Softaculous is a great Auto Installer - having 447 great scripts, 1115 PHP Classes and always...

How to Prevent Breaking your Live Website with the Staging Feature

What is Staging? The staging environment is a copy of your production site where you can...

What is Softaculous?

Softaculous is a script library that automates the installation of web applications to your...

How to Access Softaculous in cPanel

Softaculous is a powerful script Autoinstaller that allows you to install over 400 of the most...

What is an Automatic backup?

A backup is a system that copies your data - your files, pictures, folders, etc - into an archive...