当前位置:网站首页>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.
边栏推荐
- 【ONE·Data || 排序入门】
- GTK:Gdk-CRITICAL **: IA__gdk_draw_pixbuf: assertion ‘GDK_IS_DRAWABLE (drawable)’ failed
- SQL函数 TRUNCATE
- About the development forecast of the market outlook?2021-05-23
- 攻防世界----unfinish
- 鲲鹏devkit & boostkit
- 巴比特 | 元宇宙每日必读:蒂芙尼宣布推出限量版 CryptoPunk 定制吊坠
- [C language] Analysis of function recursion (3)
- 专访|带着问题去学习,Apache DolphinScheduler 王福政
- uview 2.x版本 tabbar在uniapp小程序里头点击两次才能选中图标
猜你喜欢
随机推荐
你真的懂单例模式么
专访|带着问题去学习,Apache DolphinScheduler 王福政
SQL函数 USER
删除链表的节点
Detailed explanation of stored procedures
软件测试和硬件测试的区别及概念
二叉树的类型、构建、遍历、操作
Break the limit of file locks and use storage power to help enterprises grow new momentum
rust使用mysql插入数据
科研试剂DSPE-PEG-VIP,二硬脂酰基磷脂酰乙醇胺-聚乙二醇-血管活性肠肽VIP
Image retrieval method based on deep learning!
RHCE第一天作业
音频处理:浮点型数据流转PCM文件
如何选择正规的期货交易平台开户?
The world's largest Apache open source foundation is how it works?
Geoffery Hinton:深度学习的下一个大事件
Based on the flask mall administrator functions
[C language] Analysis of function recursion (3)
机器学习——交叉验证法
文件加密软件有哪些?保障你的文件安全