Loading...

A PHP Error was encountered when I create a website in 000webhost


Hi can you help me with my website, I'm just learning at the moment. I've downloaded a sample of website with database and I uploaded it to 000webhost.com. I've come up with problems like this. Here is what it's saying:

A PHP Error was encountered Severity: Warning

Message: mysqli::real_connect(): (HY000/2002): Connection refused

Filename: mysqli/mysqli_driver.php
Line Number: 201

Backtrace:

File: /storage/ssd4/463/8701463/public_html/application/controllers/Login.php
Line: 9
Function: __construct

File: /storage/ssd4/463/8701463/public_html/index.php Line: 315
Function: require_once

A PHP Error was encountered
Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /storage/ssd4/463/8701463/public_html/system/core/Exceptions.php:271)

Filename: core/Common.php
Line Number: 570

Backtrace:

File: /storage/ssd4/463/8701463/public_html/application/controllers/Login.php Line: 9
Function: __construct

File: /storage/ssd4/463/8701463/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/Login.php
Line Number: 9

- - Source

Answers

answered 1 week ago Joe #1

(HY000/2002): Connection refused indicates that the client is unable to connect to your MySQL server.

Is the server running? Is it running at the specified address (host/port)?

comments powered by Disqus