当前位置:网站首页>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开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
- beforeDestroy与destroyed的使用
- 安全20220709
- Safety 20220715
- 5. How does the SAP ABAP OData service support the $filter operation
- The use of beforeDestroy and destroyed
- (8) Math class, Arrays class, System class, Biglnteger and BigDecimal classes, date class
- MySQL based operations
- Distributed locks and three implementation methods
- Mysql 45 study notes (twenty-five) MYSQL guarantees high availability
- Safety 20220722
猜你喜欢

【小土堆补充】Pytorch学习笔记_Anaconda虚拟环境使用

type_traits metaprogramming library learning

No qualifying bean of type 问题

Based on the local, linking the world | Schneider Electric "Industrial SI Alliance" joins hands with partners to go to the future industry

mysql基础知识(二)

C语言从入门到如土——数据的存储

Unity2D 自定义Scriptable Tiles的理解与使用(四)——开始着手构建一个基于Tile类的自定义tile(下)

IIR filter and FIR filter

pom文件成橘红色未加载的解决方案

组件传值 provide/inject
随机推荐
Redis 使用 sorted set 做最新评论缓存
Postgresql 15 source code analysis (5) - pg_control
Select the smoke test case, and make the first pass for the product package entering QA
Key Technologies of Interface Testing
Difference between unallocated blocks and unused blocks in database files
C# 实现PLC的定时器
Safety 20220709
Summary of Huawei Distributed Storage FusionStorage Knowledge Points [Interview]
interprocess communication
MATLAB/Simulink&&STM32CubeMX工具链完成基于模型的设计开发(MBD)(三)
No qualifying bean of type 问题
(树) 最近公共祖先(LCA)
$attrs/$listeners
浅识Flutter 基本组件之CheckBox组件
Database implements distributed locks
Day32 LeetCode
BUG destroyer!!Practical debugging skills are super comprehensive
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
强化学习:从入门到入坑再到拉屎
关于出现大量close_wait状态的理解