In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article will explain in detail about the MySQL login database report 'ERROR 1045 error how to do, the editor thinks it is very practical, so share to you as a reference, I hope you can get something after reading this article.
Login to the database Times error
[root@localhost install] # mysql-uzabbix-p
Enter password:
ERROR 1045 (28000): Access denied for user 'zabbix'@'localhost' (using password: YES)
View users in the database
[root@localhost install] # mysql-uroot-p
Mysql > select host,user from mysql.user
+-+ +
| | host | user |
+-+ +
| |% | zabbix |
| | 127.0.0.1 | root |
| | localhost |
| | localhost | root |
| | localhost.localdomain |
| | localhost.localdomain | root |
+-+ +
6 rows in set (0.00 sec)
Reason for reporting an error:
In the user authorization table, zabbix users are given permission to log in on all hosts, but not on localhost; in MySQL, localhost login requires socket, while other logins use-h to specify IP or hostname
Solution:
Log in via IP using-h
[root@localhost install] # mysql-h 10.10.10.10-uzabbix-p
Enter password:
Welcome to the MySQL monitor. Commands end with; or\ g.
Your MySQL connection id is 7
Server version: 5.1.73 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
Affiliates. Other names may be trademarks of their respective
Owners.
Type 'help;' or'\ h' for help. Type'\ c'to clear the current input statement.
Mysql > select user ()
+-+
| | user () |
+-+
| | zabbix@10.10.10.10 |
+-+
1 row in set (0.00 sec)
About "MySQL login database report 'ERROR 1045 error how to do" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it out for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.