当前位置:网站首页>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开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
猜你喜欢

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

「 每日一练,快乐水题 」1331. 数组序号转换
![[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

LocalDate addition and subtraction operations and comparison size

Zotero如何删除自动生成的标签

(5) final, abstract class, interface, inner class

已解决:不小心卸载pip后(手动安装pip的两种方式)

识Flutter 基本组件之showTimePicker 方法

Key Technologies of Interface Testing

Thinking about data governance after Didi fines
随机推荐
Port inspection steps - 7680 port analysis - Dosvc service
问题1:给你1-10的列表,实现列表输出,单数在左边,双数在右边。
(5) final, abstract class, interface, inner class
MySQL基础操作
[shell basics] determine whether the directory is empty
Basic knowledge of mysql (2)
强化学习:从入门到入坑再到拉屎
Web container and IIS --- Middleware penetration method 1
MATLAB/Simulink & & STM32CubeMX tool chain completes model-based design development (MBD) (three)
VS QT - ui does not display newly added members (controls) || code is silent
$attrs/$listeners
C language from entry to such as soil, the data store
type_traits metaprogramming library learning
C language confession code?
Redis uses sorted set to cache latest comments
Implementation of a sequence table
Pytest e-commerce project combat (on)
【SemiDrive源码分析】【MailBox核间通信】44 - 基于Mailbox IPCC RPC 实现核间通信(RTOS侧 IPCC_RPC Server 消息接收及回复 原理分析篇)
mysql基础知识(二)
Can't load /home/Iot/.rnd into RNG