当前位置:网站首页>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.
边栏推荐
- 【Tensorflow】AttributeError: '_TfDeviceCaptureOp' object has no attribute '_set_device_from_string'
- 好用的php空间,推荐国内三个优质的免费PHP空间[通俗易懂]
- AWVS工具介绍[通俗易懂]
- You can't accept 60% slump, there is no eligible for gain of 6000% in 2021-05-27
- stack && queue
- hsql是什么_MQL语言
- The future of financial services will never stop, and the bull market will continue 2021-05-28
- C language improvement (3)
- CVE-2020-27986 (Sonarqube sensitive information leak) vulnerability fix
- tinymce-plugins
猜你喜欢
你接受不了60%的暴跌,就没有资格获得6000%的涨幅 2021-05-27
网络安全第二次作业
rhce第三天作业
面试SQL语句,学会这些就够了!!!
RKMPP库快速上手--(一)RKMPP功能及使用详解
供应磷脂-聚乙二醇-羧基,DSPE-PEG-COOH,DSPE-PEG-Acid,MW:5000
Break the limit of file locks and use storage power to help enterprises grow new momentum
此次519暴跌的几点感触 2021-05-21
二分查找 && 树
uview 2.x版本 tabbar在uniapp小程序里头点击两次才能选中图标
随机推荐
About the development forecast of the market outlook?2021-05-23
static修饰的函数有什么特点(static可以修饰所有的变量吗)
【Tensorflow】AttributeError: module ‘keras.backend‘ has no attribute ‘tf‘
Selenium本地打开远程浏览器
一维卷积神经网络_卷积神经网络的基础知识「建议收藏」
机器学习——交叉验证法
RKMPP API安装使用总结
Gstreamer Plugin注册流程详解
关于市场后市的发展预测? 2021-05-23
目前想通过提取本地excel文件创建数据表,在sql语句这出了一些问题
Supervision strikes again, what about the market outlook?2021-05-22
The future of financial services will never stop, and the bull market will continue 2021-05-28
ORACLE expdp/impdp详解
SQL函数 TRUNCATE
面试SQL语句,学会这些就够了!!!
苹果,与Web3 “八字不合”
AWVS工具介绍[通俗易懂]
uview 2.x版本 tabbar在uniapp小程序里头点击两次才能选中图标
[C language] Explicit array solution (1)
你真的懂单例模式么