Vote count: 0
I am creating a website using Codeigniter(version:3.05),php(version: 5.6.24), mysql(version: 10.1.16 mariaDB). The site works fine on local server. But it gives error on live server as shown below.
A PHP Error was encountered
Severity: Warning
Message: mysqli::real_connect(): (HY000/2002): Connection refused
Filename: mysqli/mysqli_driver.php
Line Number: 202
Backtrace:
File: /home/sv-001/www/user/myweb/application/third_party/MX/Loader.php
Line: 109
Function: DB
File: /home/sv-001/www/user/myweb/application/third_party/MX/Loader.php
Line: 65
Function: initialize
File: /home/sv-001/www/user/myweb/application/modules/home/controllers/Home.php
Line: 8
Function: __construct
File: /home/sv-001/www/user/myweb/index.php
Line: 294
Function: require_once
I have been checking my database file(database.php) several time, but I didn't find any error there regarding hostname,username,password, database name.
asked 18 secs ago
Codeigniter Error Message on Live server : mysqli::real_connect(): (HY000/2002): Connection refused
Aucun commentaire:
Enregistrer un commentaire