简体   繁体   中英

when I start apache MySQL server, I get error “ (HY000/2002): No connection could be made because the target machine actively refused it.”

after the start apache server, i could not access PHPMyAdmin. when i try to access i get an error and auto-stop MySQL server.

在此处输入图像描述


 - 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

Add below line under config.inc.php

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM