当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
In the idea to create a web project _idea deployment of the web project
【二】TS基本类型
js通过两种方式进行对商品价格排序
接入网学习笔记
Locking and concurrency control (a)
AI智能剪辑,仅需2秒一键提取精彩片段
金仓数据库KingbaseES安全指南--6.10. Peer身份验证
[300+ selected big factory interview questions continue to share] Big data operation and maintenance sharp knife interview questions column (10)
Limit实现分页
持续集成(五)Jenkins配置父子job
周末看点回顾|亚马逊将于2023年底关闭Amazon Drive网盘服务;千寻位置发布时空智能六大底层自研技术…
品牌方发行NFT时,应如何考量实用性?
几种常见的跨域解决方法
金仓数据库KingbaseES安全指南--6.11. PAM身份验证
红蓝对抗经验分享:CS免杀姿势
什么是APS系统?导入APS要注意什么?值得反复观看
Nacos配置中心用法详细介绍
Redis进阶之路:深度解析Redis单线程架构,图文并茂不能再清晰了
FPGA 20个例程篇:10.遍历DDR3内存颗粒读写循环校验
Oracle 11g rac打完补丁,dbca新建数据库还需要执行应用补丁的sql吗?









