Errors in PHP

Php Error Solution by Aryadrj




1. Warning: mysqli_connect(): (HY000/2002): No connection could be made because the target machine actively refused it.


  • Solution 1:Click on start on Mysql


2.Warning: mysqli_connect(): (HY000/1044): Access denied for user ''@'localhost' to database 'csi_project' in C:\xampp\htdocs\.................\connect.php on line 8

Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in C:\xampp\htdocs\.............\connect.php on line 11

Failed to connect!


  • Solution 1:Change $username to root in connection.php

3.Couldn't able to login/register in the project!!


  • Solution 1: Import Database
4. Apache is not starting


  • Solution 1: Reinstall the Xampp




Comments

Popular posts from this blog

How to set image in carousel using flask?

Invalid syntax , perhaps you forgot a comma? Error in Python

How to run PL/SQL Code With Command Line?