Website down randomly
A PHP Error was encountered
Severity: Warning
Message: mysqli::real_connect(): (HY000/2002): Connection refused
Filename: mysqli/mysqli_driver.php
Line Number: 203
Backtrace:
File: /home/v1/public_html/application/controllers/Askapharmaweb.php
Line: 7
Function: __construct
File: /home/v1/public_html/index.php
Line: 315
Function: require_once
A Database Error Occurred
Unable to connect to your database server using the provided settings.
Filename: controllers/Askapharmaweb.php
Line Number: 7
1 Reply
Sounds like MySQL has either crashed, been stopped or not started automatically following a reboot.
I’d suggest start looking at your MySQL error log.
Unfortunately without any more information about your setup (OS, MySQL/MariaDB, versions, how it was installed etc) I can’t really advise much more.
A bit of Google-ing should help you find the error log and begin looking at what’s in it.