当前位置:网站首页>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开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
- $parent/$children and ref
- 安全20220715
- [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
- 日志级别 和 打印log注意
- beforeDestroy与destroyed的使用
- LeetCode每日一练 —— 138. 复制带随机指针的链表
- errno错误码及含义(中文)
- [C language] General method of base conversion
- mysql基础知识(二)
- $attrs/$listeners
猜你喜欢

马斯克对话“虚拟版”马斯克,脑机交互技术离我们有多远

Understanding and Using Unity2D Custom Scriptable Tiles (4) - Start to build a custom tile based on the Tile class (below)

Why don't you programmers make a living off your own projects?And have to work for someone else?

Daily practice of LeetCode - 138. Copy a linked list with random pointers

MySQL based operations
![[Swift] Customize the shortcut that pops up by clicking the APP icon](/img/d4/84b237995fc3d3700916eb57f6670d.png)
[Swift] Customize the shortcut that pops up by clicking the APP icon

Knowledge Distillation 7: Detailed Explanation of Knowledge Distillation Code

$attrs/$listeners

强化学习:从入门到入坑再到拉屎

VScode+ESP32快速安装ESP-IDF插件
随机推荐
$attrs/$listeners
「 每日一练,快乐水题 」1331. 数组序号转换
扫雷游戏(c语言写)
$attrs/$listeners
微信小程序使用云函数更新和添加云数据库嵌套数组元素
Win10 CUDA CUDNN 安装配置(torch paddlepaddle)
C语言表白代码?
(线段树) 基础线段树常见问题总结
A brief introduction to the CheckBox component of the basic components of Flutter
Know the showTimePicker method of the basic components of Flutter
浅识Flutter 基本组件之CheckboxListTile组件
【AUTOSAR-RTE】-4-Port和Interface以及Data Type
关于出现大量close_wait状态的理解
interprocess communication
qlib自动化quant
What is a system?
"A daily practice, happy water problem" 1331. Array serial number conversion
type_traits元编程库学习
errno error code and meaning (Chinese)
(4) Recursion, variable parameters, access modifiers, understanding main method, code block