当前位置:网站首页>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.
边栏推荐
猜你喜欢

A number of embassies and consulates abroad have issued reminders about travel to China, personal and property safety

世界上最大的开源基金会 Apache 是如何运作的?

网络安全第二次作业

MySQL - ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)

鲲鹏devkit & boostkit

玉溪卷烟厂通过正确选择时序数据库 轻松应对超万亿行数据

苹果,与Web3 “八字不合”
![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

【ONE·Data || 排序入门】

The future of financial services will never stop, and the bull market will continue 2021-05-28
随机推荐
rhce第三天作业
大而全的pom文件示例
FFmpeg AVPacket详解
关于C#使用DateTime数据的细节
Mysql index details (with pictures and texts)
目标检测场景SSD-Mobilenetv1-FPN
[C language] Analysis of function recursion (3)
Break the limit of file locks and use storage power to help enterprises grow new momentum
机器学习——交叉验证法
二分查找 && 树
About the development forecast of the market outlook?2021-05-23
SQL函数 UPPER
玉溪卷烟厂通过正确选择时序数据库 轻松应对超万亿行数据
MySQL - ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)
requestparam注解接的收的是什么格式(玄机赋注解)
SQL函数 USER
deal!It's July 30th!
RKMPP库快速上手--(一)RKMPP功能及使用详解
shell脚本“画画”
目前想通过提取本地excel文件创建数据表,在sql语句这出了一些问题