当前位置:网站首页>全网最简单解决方式1045-Access denied for user [email protected](using password:YES)
全网最简单解决方式1045-Access denied for user [email protected](using password:YES)
2022-07-25 13:01:00 【111辄】
最近 Javaweb小学期 和 数据库小学期 答辩,极限赶大作业,唉
1045-Access denied for user [email protected](using password:YES)
连接数据库时出现了这个问题,网上大概有3种解决方法,我试了下都无效。我估计跟mysql重复开启啥的有关系,因为十分钟前还可以正常连接,然后电脑自动关机(电脑反复坏,还没修),再开机后就出现这个错误。
步骤一:任务栏空白处->鼠标右键->任务管理器->详细信息,关闭mysqld任务。
这时候用Navicat连也会报错,报的好像是连接不上啥的,忘了没记。这是因为mysql被关闭了
步骤二:用管理员权限打开cmd控制台,切换到mysql安装bin目录下
![]()
net start mysql,注意一定用管理员权限才能启动数据库

然后连接mysql就正常了
之前连数据库还报了一个错,记录一下
Your password has expired.To log in you must change itusing a client that supports expired passwords
这个报错的意思是你的密码没错,但是过期了。
我用的MySQL5.7,把设置密码的语句改成set password for [email protected] = password('123456');就行了。不同版本可能稍有区别。
边栏推荐
- [operation and maintenance, implementation of high-quality products] interview skills for technical positions with a monthly salary of 10k+
- Ministry of Public Security: the international community generally believes that China is one of the safest countries in the world
- 卷积神经网络模型之——VGG-16网络结构与代码实现
- 并发编程 — 内存模型 JMM
- 零基础学习CANoe Panel(14)——二极管( LED Control )和液晶屏(LCD Control)
- 【历史上的今天】7 月 25 日:IBM 获得了第一项专利;Verizon 收购雅虎;亚马逊发布 Fire Phone
- Word style and multi-level list setting skills (II)
- [Video] Markov chain Monte Carlo method MCMC principle and R language implementation | data sharing
- Atcoder beginer contest 261 f / / tree array
- 【问题解决】ibatis.binding.BindingException: Type interface xxDao is not known to the MapperRegistry.
猜你喜欢

ECCV2022 | TransGrasp类级别抓取姿态迁移

Shell common script: judge whether the file of the remote host exists

程序的内存布局

Shell常用脚本:检测某域名、IP地址是否通

【CTR】《Towards Universal Sequence Representation Learning for Recommender Systems》 (KDD‘22)

Machine learning strong foundation program 0-4: popular understanding of Occam razor and no free lunch theorem

程序员成长第二十七篇:如何评估需求优先级?

mysql函数汇总之日期和时间函数

EMQX Cloud 更新:日志分析增加更多参数,监控运维更省心

Common operations for Yum and VIM
随机推荐
AtCoder Beginner Contest 261E // 按位思考 + dp
深度学习的训练、预测过程详解【以LeNet模型和CIFAR10数据集为例】
[machine learning] experimental notes - emotion recognition
Pytorch creates its own dataset and loads the dataset
如何理解Keras中的指标Metrics
Azure Devops(十四) 使用Azure的私有Nuget仓库
并发编程 — 内存模型 JMM
Business visualization - make your flowchart'run'(3. Branch selection & cross language distributed operation node)
"Wei Lai Cup" 2022 Niuke summer multi school training camp 2 supplementary problem solution (g, J, K, l)
牛客论坛项目部署总结
Zero basic learning canoe panel (12) -- progress bar
Shell common script: judge whether the file of the remote host exists
【AI4Code】《CoSQA: 20,000+ Web Queries for Code Search and Question Answering》 ACL 2021
[review SSM framework series] 15 - Summary of SSM series blog posts [SSM kill]
全球都热炸了,谷歌服务器已经崩掉了
yum和vim须掌握的常用操作
7行代码让B站崩溃3小时,竟因“一个诡计多端的0”
[problem solving] org.apache.ibatis.exceptions PersistenceException: Error building SqlSession. 1-byte word of UTF-8 sequence
【GCN-CTR】DC-GNN: Decoupled GNN for Improving and Accelerating Large-Scale E-commerce Retrieval WWW22
A hard journey