当前位置:网站首页>ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)
ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)
2022-07-31 04:11:00 【sebeefe】
ERROR 2003 (HY000): Can’t connect to MySQL server on ‘localhost:3306’ (10061)
原文连接:https://yangman824.gitee.io/posts/mysqlError/
这周开始我们有两周的实训课,实训内容竟与Mysql有关,本来以为安装软件就是无脑安装,一直点next就行了,但这个软件硬生生搞了一个小时,阿巴阿巴……小炒面,我应该还能承受的来
想要自定义密码启动mysql,但是在cmd中直接输入mysql -u root -p时出现了如下问题:
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-lctNF5Uy-1640160132284)(C:UsersSonderAppDataRoamingTypora ypora-user-imagesimage-20211220164153008.png)]
解决办法
以管理员身份运行cmd(win+Q,搜索cmd后点击 ’ 以管理员身份运行 ’ ),输入net start mysql,启动成功后,回到刚刚输入mysql -u root -p的cmd中再次执行,就可以正常操作了。
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-LtNbzzuf-1640160132286)(C:UsersSonderAppDataRoamingTypora ypora-user-imagesimage-20211220164501477.png)]
------------------------------------------------------------------------------更新------------------------------------------------------------------------------
其他问题
因为我安装的跟教程的版本(8.0.27)不一样,导致最后一步会报错,所以就按照下面新的步骤进行即可。
切换到mysql数据库
use mysql
修改root密码
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
退出并重启mysql,就可以使用新密码登录了
mysql >quit;
service mysqld restart
先自我介绍一下,小编13年上师交大毕业,曾经在小公司待过,去过华为OPPO等大厂,18年进入阿里,直到现在。深知大多数初中级java工程师,想要升技能,往往是需要自己摸索成长或是报班学习,但对于培训机构动则近万元的学费,着实压力不小。自己不成体系的自学效率很低又漫长,而且容易碰到天花板技术停止不前。因此我收集了一份《java开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
- Redis counts new and retained users
- Learning DAVID Database (1)
- (四)递归、可变参数、访问修饰符、理解 main 方法、代码块
- three.js 制作3D相册
- The use of beforeDestroy and destroyed
- 马斯克对话“虚拟版”马斯克,脑机交互技术离我们有多远
- Daily practice of LeetCode - 138. Copy a linked list with random pointers
- [C language] General method for finding the sum of the greatest common factor and the least common multiple of two integers m and n, the classical solution
- What is a system?
- 三子棋的代码实现
猜你喜欢
The application and practice of mid-to-platform brand advertising platform
C language confession code?
MATLAB/Simulink & & STM32CubeMX tool chain completes model-based design development (MBD) (three)
扫雷游戏(c语言写)
浅识Flutter 基本组件之CheckBox组件
【论文阅读】Mastering the game of Go with deep neural networks and tree search
Mysql 45 study notes (23) How does MYSQL ensure that data is not lost
Summary of Huawei Distributed Storage FusionStorage Knowledge Points [Interview]
Notes on the establishment of the company's official website (6): The public security record of the domain name is carried out and the record number is displayed at the bottom of the web page
Web container and IIS --- Middleware penetration method 1
随机推荐
volatile内存语义以及实现 -volatile写和读对普通变量的影响
IIR filter and FIR filter
Pytest e-commerce project combat (on)
No qualifying bean of type 问题
安全20220722
【AUTOSAR-RTE】-4-Port and Interface and Data Type
Win10 CUDA CUDNN 安装配置(torch paddlepaddle)
Daily practice of LeetCode - 138. Copy a linked list with random pointers
Safety 20220709
MySQL to revise the root password
[C language] Three-pointed chess (classic solution + list diagram)
errno error code and meaning (Chinese)
Implementation of a sequence table
LocalDate addition and subtraction operations and comparison size
浅识Flutter 基本组件之showDatePicker方法
Regarding the primary key id in the mysql8.0 database, when the id is inserted using replace to be 0, the actual id is automatically incremented after insertion, resulting in the solution to the repea
(4) Recursion, variable parameters, access modifiers, understanding main method, code block
SQL Interview Questions (Key Points)
Safety 20220712
ENSP,划分VLAN、静态路由,三层交换机综合配置