当前位置:网站首页>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.
边栏推荐
- Image retrieval method based on deep learning!
- Data Organization---Chapter 6 Diagram---Graph Traversal---Multiple Choice Questions
- Configure zabbix auto-discovery and auto-registration.
- Gstreamer Plugin注册流程详解
- 面试SQL语句,学会这些就够了!!!
- 定了!就在7月30日!
- 【C语言】手撕循环结构 —— for语句
- SQL函数 TRUNCATE
- FFmpeg AVPacket详解
- RKMPP库快速上手--(一)RKMPP功能及使用详解
猜你喜欢
随机推荐
RKMPP 在FFmpeg上实现硬编解码
RKMPP API安装使用总结
FFmpeg 的AVCodecContext结构体详解
Some impressions of the 519 plummet 2021-05-21
FFmpeg AVPacket详解
目标检测场景SSD-Mobilenetv1-FPN
机器学习——交叉验证法
eclipse连接数据库后插入数据报错null
SQL函数 UCASE
Object detection scene SSD-Mobilenetv1-FPN
Embedded system driver primary [2] - based on character device driver _ basic framework
【Tensorflow】AttributeError: module ‘keras.backend‘ has no attribute ‘tf‘
巴比特 | 元宇宙每日必读:蒂芙尼宣布推出限量版 CryptoPunk 定制吊坠
Data Organization---Chapter 6 Diagram---Graph Traversal---Multiple Choice Questions
RHCE第一天作业
方舟生存进化淘宝面板服务器是怎么一回事?
rhce第三天作业
ORACLE expdp/impdp详解
鲲鹏devkit & boostkit
政策利空对行情没有长期影响,牛市仍将继续 2021-05-19