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

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

(五)final、抽象类、接口、内部类

浅识Flutter 基本组件之showDatePicker方法

MySQL基础操作

Learning DAVID Database (1)

微信小程序使用云函数更新和添加云数据库嵌套数组元素

VScode+ESP32快速安装ESP-IDF插件

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

LocalDate addition and subtraction operations and comparison size

endian mode
随机推荐
微信小程序使用云函数更新和添加云数据库嵌套数组元素
(8) Math class, Arrays class, System class, Biglnteger and BigDecimal classes, date class
安全20220715
【AUTOSAR-RTE】-4-Port和Interface以及Data Type
ClickHouse:设置远程连接
【SemiDrive源码分析】【MailBox核间通信】44 - 基于Mailbox IPCC RPC 实现核间通信(RTOS侧 IPCC_RPC Server 消息接收及回复 原理分析篇)
三子棋的代码实现
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
Knowledge Distillation 7: Detailed Explanation of Knowledge Distillation Code
How Zotero removes auto-generated tags
Safety 20220712
[AUTOSAR-RTE]-5-Explicit (explicit) and Implicit (implicit) Sender-Receiver communication
Port inspection steps - 7680 port analysis - Dosvc service
A brief introduction to the CheckBox component of the basic components of Flutter
Mysql 45 study notes (twenty-four) MYSQL master-slave consistency
Difference between unallocated blocks and unused blocks in database files
ClickHouse: Setting up remote connections
The third is the code to achieve
Smartcom Programming Level 4 - Magic Academy Lesson 6
识Flutter 基本组件之showTimePicker 方法