Thursday, January 13, 2022

[FIXED] when I start apache MySQL server, I get error " (HY000/2002): No connection could be made because the target machine actively refused it."

Issue

after the start apache server, i could not access PHPMyAdmin. when i try to access i get an error and auto-stop MySQL server.

enter image description here


 - mysqli_real_connect(): (HY000/2002): No connection could be made
   because the target machine actively refused it.
 - Connection for controluser as defined in your configuration failed.
   mysqli_real_connect(): (HY000/2002): No connection could be made
   because the target machine actively refused it.
 - phpMyAdmin tried to connect to the MySQL server, and the server
   rejected the connection..

how can i solve this error


Solution

Add below line under config.inc.php

$cfg['Servers'][$i]['port'] = 8111;



Answered By - Priyesh Shukla

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.