No connection could be made because the target machine actively refused it

Okay, so i tried all of the answers and none of them worked.
If you are using different port than 3306 for MySQL you need to specify it in config.inc.php.

So since i was using port 3308, my solution was adding the following line in config.inc.php:

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

add it right bellow the user, password or extension lines.

Leave a Comment