EN VI

nginx & mariadb error mysqli::real_connect(): (HY000/2002): Connection refused on VPS/Cloud

2022-09-07 17:43:12

 I create a web site using PHP, Mysql. Sometime this show error message: 'mysqli::real_connect(): (HY000/2002): Connection refused'. How to fix it?

Solution:

Run command:

sudo systemctl start mariadb

sudo service httpd start

Answer

Login


Forgot Your Password?

Create Account


Lost your password? Please enter your email address. You will receive a link to create a new password.

Reset Password

Back to login