当前位置:网站首页>Mysql error 2003 solution Can 't connect to Mysql server on' localhost '(10061).
Mysql error 2003 solution Can 't connect to Mysql server on' localhost '(10061).
2022-08-02 07:51:00 【web18224617243】
Cause:
The database has not been used on the computer for a long time, and the result is that the link cannot be connected when it starts up
I found several solutions on the Internet, but they didn't work for me. I tried one that worked and put it here.
In order to improve the running speed of my computer, I have turned off all the services that run automatically in the background.So
Step 1: View Services
Open your task manager, there is a link directly to the service.Of course, there are other ways to find services.
The service interface is shown in the figure:
Step 2: View Mysql service
Step 3: Analyze the cause
Check if your Mysql service is open
Look at the positions of ① to see if they are all activated.Everyone's installed Mysql version is different, and it may not be displayed exactly the same.
It is because I chose manual management here, and it is closed, and ① is also incomplete, so the link is not available.
If it is not started, then select the service, and you can choose to start at the position of ③.
After the third step, you can go and see if you can connect.
Step 4: If service is missing
1. Run your cmd as an administrator
2. Enter mysqld -install in the command prompt
What I show here is already installed.
I can connect to the database after this step. If you still can't, check it online.
If it's useful, remember to like it!
This article is original, please remember to add a link for reprinting!kisses!
Let me introduce myself first. The editor graduated from Shanghai Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Alibaba 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 also 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
边栏推荐
猜你喜欢
随机推荐
MySQL-多版本并发控制
LeetCode SQL 197. 上升的温度
LeetCode 2312. Sell Wood Blocks
根据一个字段的内容去更新另一个字段的数据,这样的sql语句该怎么样书写
Agile, DevOps and Embedded Systems Testing
OC-NSString
LeetCode 283. 移动零(简单、数组)
MySQL-FlinkCDC-Hudi enters the lake in real time
聊天机器人如何提升独立站的营销水平?
从云计算到函数计算
OC-范畴
查看僵尸进程
MySQL-Multiversion Concurrency Control
CollectionUtil:一个函数式风格的集合工具
Enterprise training and reproduction guidebook - training and reasoning of the OpenPose model based on Huawei ModelArts platform, realizing the recognition of two behaviors of climbing and climbing ov
MySQL-执行流程+缓存+存储引擎
“蔚来杯“2022牛客暑期多校训练营5,签到题KBGHFCD
2020美亚团队赛复盘
MySQL批量更新
MySQL-底层设置