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

前端 未结 9 571
情深已故
情深已故 2020-11-30 11:34

When I was trying to connect my phpmyadmin on my XAMPP, it gave an error:

#2002 - No connection could be made because the target m         


        
相关标签:
9条回答
  • 2020-11-30 11:42

    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.

    0 讨论(0)
  • 2020-11-30 11:44

    Please go to c:\xampp\tmp folder and delete all the files. It works for me may help you.

    0 讨论(0)
  • 2020-11-30 11:47

    Please try changing connect_type in your config.inc.php from 'tcp' to 'http'. This file exists in the phpMyAdmin top level directory.

    Existing line looks like this:

    $cfg['Servers'][$i]['connect_type'] = 'tcp';
    

    New line should be looking like this:

    $cfg['Servers'][$i]['connect_type'] = 'http';
    
    0 讨论(0)
  • 2020-11-30 11:47

    Sometimes if you delete your temporary files in windows in

    C:\Windows\Temp

    and

    C:\Users\YourUser\AppData\Local\Temp

    it works.

    0 讨论(0)
  • 2020-11-30 11:51

    Go to

    C:\Users\YourUser\AppData\Local\Temp

    Delete all the files.It will work.

    0 讨论(0)
  • 2020-11-30 11:54

    Instead of localhost, type this in your address bar localhost:<PORT> (e.g. localhost:88)

    0 讨论(0)
提交回复
热议问题