PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

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."

 January 13, 2022     localhost, php, phpmyadmin, xampp     No comments   

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
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

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

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing