当前位置:网站首页>How to solve 1045 cannot log in to mysql server
How to solve 1045 cannot log in to mysql server
2022-08-02 14:02:00 【Yisuyun】
How to solve 1045 can't log in to mysql server
This article mainly introduces how to solve 1045 cannot log in mysqlThe relevant knowledge of the server , the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe that everyone will gain something after reading this article on how to solve the 1045 cannot log in to the mysql server. Let's take a look.
Solution: 1. Find the "my.ini" system configuration file, and put "skip-grant-tables" under "port=****"; 2. If it is placed in the C drive, it needs to be editedPermissions, and save the changes; 3. Restart the service before opening the MySQL database, open the cmd command prompt, enter mysql directly, and press Enter to open the MySQL database.
The operating environment of this tutorial: windows10 system, mysql8.0.22 version, Dell G3 computer.
How to solve 1045 can't log in to mysql server
Open MySQL
Enter mysql, as shown below:

A prompt appears:
ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO)
means:
Access denied for user "ODBC"@"localhost" (using password: no)
This is not the command to open the MySQL database, so there will be an error. You should use the mysql -u root -p command, and then you will be asked to enter the password. After entering the password, you can enter the MySQL database, as shown below:

Workaround:
1. We find the my.ini system configuration file, open it with Notepad, find [mysqld], and put skip-grant-tables under port=****, as shown below:



Save after copying. If you put it in the C drive, you need editing permission, otherwise you don't have permission to save the configuration file.
Right click and click Properties

Find Security, click Security, the following interface will appear:

At this point, you can see that individual users do not have permission to write and modify.
2. Click Edit, find the user individual user, click to enter the user permission editing mode, tick the box to the right of the "Write" permission, click OK, and then click OK, as shown in the figure:

This saves the changes.
3. Restart the service before opening the MySQL database, open the cmd command prompt, enter mysql directly, and press Enter to open the MySQL database.


The content of this article about "How to solve 1045 can't log in to mysql server" is introduced here, thank you for reading!I believe that everyone has a certain understanding of "how to solve 1045 cannot log in to the mysql server". If you want to learn more, please pay attention to the Yisuyun industry information channel.
边栏推荐
- 为什么四个字节的float表示的范围比八个字节的long要广
- Why does a four-byte float represent a wider range than an eight-byte long
- 二进制中1的个数
- rhce第三天作业
- ZABBIX配置邮件报警和微信报警
- Selenium本地打开远程浏览器
- CVE-2020-27986(Sonarqube敏感信息泄漏) 漏洞修复
- Supervision strikes again, what about the market outlook?2021-05-22
- FFmpeg 的AVCodecContext结构体详解
- 苏州大学:从 PostgreSQL 到 TDengine
猜你喜欢

攻防世界----unfinish

线程安全问题及关键字synchronized,volatile

ZABBIX配置邮件报警和微信报警

二进制中1的个数

基于深度学习的图像检索方法!

专访|带着问题去学习,Apache DolphinScheduler 王福政

矩阵中的路径

【Tensorflow】AttributeError: ‘_TfDeviceCaptureOp‘ object has no attribute ‘_set_device_from_string‘
![Embedded system driver primary [2] - based on character device driver _ basic framework](/img/71/4feb9e42fd2ff1bc4a2d49798657b2.png)
Embedded system driver primary [2] - based on character device driver _ basic framework

rhce第三天作业
随机推荐
WiFi Association&Omnipeek抓包分析
SQL函数 UCASE
音频处理:浮点型数据流转PCM文件
【Tensorflow】AttributeError: '_TfDeviceCaptureOp' object has no attribute '_set_device_from_string'
Shell脚本完成pxe装机配置
面试官:可以谈谈乐观锁和悲观锁吗
els 长条方块变形条件、边界碰撞判定
专访|带着问题去学习,Apache DolphinScheduler 王福政
巴比特 | 元宇宙每日必读:蒂芙尼宣布推出限量版 CryptoPunk 定制吊坠
二进制中1的个数
数值的整数次方
FFmpeg 的AVCodecContext结构体详解
[C language] Analysis of function recursion (2)
目前想通过提取本地excel文件创建数据表,在sql语句这出了一些问题
删除链表的节点
RKMPP API安装使用总结
wait() ,notify(),notifyAll()以及wait()与sleep()比较
存储过程详解
世界上最大的开源基金会 Apache 是如何运作的?
不精确微分/不完全微分(Inexact differential/Imperfect differential)