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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…