当前位置:网站首页>Can 't connect to MySQL server on' localhost3306 '(10061) simple solutions
Can 't connect to MySQL server on' localhost3306 '(10061) simple solutions
2022-08-04 05:31:00 【little things】
Error:
ERROR 2003 (HY000): Can’t connect to MySQL server on ‘localhost:3306’ (10061)
The service already exists! The current server installed: E:Environmentmysql-8.0.26-winx64inmysqld MySQL

Workaround:
(Run cmd as administrator)
- mysqld --remove mysql, then manually delete the data folder and my.ini file
- mysqld --install (install mysql)
- mysqld --initialize --user=root --console (initialize mysql)
- net start mysql (start mysql)
- mysql -u root -p (enter mysql, enter the initial password)
- set password='password'; (set password)

Summary
Error message:
- InnoDB:Attemptedtoopenapreviouslyopenedtablespace
- Got error -1 from storage engine
In my previous article, I wrote about the solution to system error 1067 in MySQL, when the error message was InnoDB:Attemptedtoopenapreviouslyopenedtablespace
But later found that even if the problem of this system error is solved, it will not work, because the solution to this problem is to add innodb_force_recovery = 1 to my.ini, but when the parameter value is set greater than 0, the table can be selected, create, drop operations, but operations such as insert, update or delete are not allowed, and an error will be prompted: Got error -1 from storage engine.
In simple terms, if the parameter of innodb_force_recovery is set to 0, mysql cannot be started, and if the parameter is set to 1, operations such as insert, update or delete cannot be performed. Personally, this is an infinite loop.
I personally suggest that if you encounter this problem, you should uninstall the current MySQL immediately, download a new version of MySQL and reinstall it, which can save a lot of trouble!
Reference link:
- mysql prompts Can't connect to MySQL server on localhost (10061) solution.li>
- Can’t connect to MySQL server on localhost (10061) solution.
- Got error -1 from storage engine.
- MySQL installation
Let me introduce myself first. The editor graduated from Shanghai Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Alibaba in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is also very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
- 力扣:746. 使用最小花费爬楼梯
- 有趣的 Kotlin 0x0E:DeepRecursiveFunction
- 深度学习21天——准备(环境配置)
- C Expert Programming Chapter 4 The Shocking Fact: Arrays and pointers are not the same 4.4 Matching declarations to definitions
- 少年成就黑客,需要这些技能
- Cannot read properties of null (reading ‘insertBefore‘)
- 如何低成本修bug?测试左移给你答案
- MySQL数据库(基础)
- 关于yolo7和gpu
- 心余力绌:企业面临的软件供应链安全困境
猜你喜欢

Cannot read properties of null (reading ‘insertBefore‘)

7.15 Day21---MySQL----索引

代码重构:面向单元测试

想低成本保障软件安全?5大安全任务值得考虑

idea设置识别.sql文件类型以及其他文件类型

C语言 -- 操作符详解

FPGA学习笔记——知识点总结

The idea setting recognizes the .sql file type and other file types

Towards Real-Time Multi-Object Tracking(JDE)

你以为border-radius只是圆角吗?【各种角度】
随机推荐
基于gRPC编写golang简单C2远控
npm安装依赖报错npm ERR! code ENOTFOUNDnpm ERR! syscall getaddrinfonpm ERR! errno ENOTFOUND
【流程图】
The idea setting recognizes the .sql file type and other file types
败给“MySQL”的第60天,我重振旗鼓,四面拿下蚂蚁金服offer
想低成本保障软件安全?5大安全任务值得考虑
在被面试官说了无数次后,终于潜下心来整理了一下JVM的类加载器
心余力绌:企业面临的软件供应链安全困境
Chapter 5 C programming expert thinking 5.4 alert Interpositioning of links
谷粒商城-基础篇(项目简介&项目搭建)
获取单选框选中内容
About yolo7 and gpu
4.1 声明式事务之JdbcTemplate
word 公式编辑器 键入技巧 | 写数学作业必备速查表
[One step in place] Jenkins installation, deployment, startup (complete tutorial)
Delphi-C端有趣的菜单操作界面设计
你以为border-radius只是圆角吗?【各种角度】
C Expert Programming Chapter 4 The Shocking Fact: Arrays and pointers are not the same 4.2 Why does my code not work
Grain Mall - Basics (Project Introduction & Project Construction)
自动化测试的成本高效果差,那么自动化测试的意义在哪呢?