Can't connect to MySQL server on localhost (10061) 的一种解决方法

提供一种解决方法

之前学习PHP的时候安装过php study,自带的mysql导致和后来安装的mysql端口号冲突

前提:PC上安装了两个mysql

解决方法:找到两个mysql下的my.ini 文件 ,刚刚安装的mysql端口号最好改为默认的3306,

旧的mysql端口随便改成其他的避免冲突,我这边改的是3305

*重启mysql的服务后再尝试,祝成功_(:3J∠)_
Can't connect to MySQL server on localhost (10061) 的一种解决方法
Can't connect to MySQL server on localhost (10061) 的一种解决方法
Can't connect to MySQL server on localhost (10061) 的一种解决方法
Can't connect to MySQL server on localhost (10061) 的一种解决方法
Can't connect to MySQL server on localhost (10061) 的一种解决方法