skip to Main Content

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

2

Answers


  1. Add below line under config.inc.php

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

    Login or Signup to reply.
  2. If you are on Windows os and the above solution does not work, just check if your mysql is running with "netstat -ano" command, if the services are not running just try starting the mysql service.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search