msaad1999 / KLiK-SocialMediaWebsite

Complete PHP-based Login/Registration system, Profile system, Chat room, Forum system and Blog/Polls/Event Management System.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I have fatal error

ufukxwqq1 opened this issue · comments

No matter what I do I get this error:

Fatal error: Uncaught mysqli_sql_exception: No connection could be made because the target machine actively refused it in C:\xampp\htdocs\includes\dbh.inc.php:8 Stack trace: #0 C:\xampp\htdocs\includes\dbh.inc.php(8): mysqli_connect('217.195.197.56', 'ugur', Object(SensitiveParameterValue), 'klik_database', 3307) #1 C:\xampp\htdocs\index.php(5): include_once('C:\xampp\htdocs...') #2 {main} thrown in C:\xampp\htdocs\includes\dbh.inc.php on line 8

Here are some steps you can take to resolve the issue:

  1. Check if the database server is running (most likely)

  2. Ensure your software versions fit the ones mentioned in the ReadME

  3. Double-check the login credentials you are using to connect to the database server. Make sure that the username, password, and database name are correct.

  4. Make sure that you are using the correct port number to connect to the database server. The default port number for MySQL is 3306, but it could be different if you have changed it.

  5. Check the firewall settings (rarely the case)