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

前端 未结 9 590
情深已故
情深已故 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:58

    If your operating system is Windows 7:

    • go to control panel -> Administrative Tools -> Services
    • find mysql then right-click, click start

    If your operating system is Linux (Ubuntu):

    • in terminal type this command: sudo /etc/init.d/mysql start

    Good Luck

    0 讨论(0)
  • 2020-11-30 12:02

    Assuming you're trying to connect to http://localhost/phpmyadmin.

    From XAMPP control panel start both the Apache module and the MySQL module.

    0 讨论(0)
  • 2020-11-30 12:04

    Go to :

    xampp/phpmyadmin/config.inc.php
    

    open the file config.inc.php Go to line no:31

    $cfg['Servers'][$i]['controluser'] = 'pma';
    

    Change the line to :

    $cfg['Servers'][$i]['controluser'] = 'root';
    

    Restart your system.

    Reference

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