当前位置:网站首页>navicat creates a connection 2002-can't connect to server on localhost (10061) and the mysql service has started the problem
navicat creates a connection 2002-can't connect to server on localhost (10061) and the mysql service has started the problem
2022-08-02 19:04:00 【m0_67403013】
navicat creates a connection 2002-can’t connect to server on localhost (10061) and the mysql service has started the problem

The problem is as above, using navicat
Check if mysql is started
Control Panel - Administrative Tools - Services
Find the mysql service and find that it has been started.If it is not activated, right-click to start it
View the local mysql port number
The default is 3306, as shown above.But I changed it for some reasons when I installed it here, which is also the reason for this 2002 problem.
win+R to run cmd, enter mysql -u root -p
Enter show global variables like 'port'; to view the port, pay attention to the semicolon
found that it is 3305, go back to navicat, and change the port to 3305

Let me introduce myself first. The editor graduated from Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Ali in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
猜你喜欢
随机推荐
内网渗透之kerberos认证(三)
代码随想录笔记_哈希_61扑克牌中的顺子
链表| leecode刷题笔记
持续集成(四)Jenkins配置报警机制
Flink SQL搭建实时数仓DWD层
Antd-ProComponents中的EditableProTable无法在子行继续新增子子行的临时解决方案
Nacos配置中心工作原理(超简单)
julia系列6:并行计算
MySQL——慢查询日志分析
2022年PMP考试应该注意些什么?
8大软件供应链攻击事件概述
总结:不同语言比较总结
[LeetCode]剑指 Offer 32 - II. 从上到下打印二叉树 II
融云「 IM 进阶实战高手课」系列直播上线
js实现改变原来对象中的键值对对应的值
11.1-CM24 最近公共祖先
mysql 《一》触发器
软件技术功能开发思路
Oracle 11g rac打完补丁,dbca新建数据库还需要执行应用补丁的sql吗?
Nacos面试题



![牛客的课程订单分析[分组统计时如何取指定行字段?]](/img/9d/d27b8372ae5e5f1c7b9e6f5e9bb1f6.png)





