In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the example analysis of the failure of the idea operation database in ubuntu 18.04. It has certain reference value. Interested friends can refer to it. I hope you will have a lot of gains after reading this article. Let Xiaobian take you to understand it together.
Possible cause: Insufficient authority
I found that I need root privileges every time I enter mysql at terminal. Otherwise "Access denied for user 'root'@'localhost'" is the same even in navicat. Ordinary users simply cannot connect. Always report 2002 error. But if I am root user, log in there is no problem, it is very fan!
So I suspect that my idea does not have root privileges caused. After all, I opened idea with normal user rights.
With terminal login mysql method (root can be replaced with other user names)
via :~$ mysql -u root -p
Create a normal new user with all permissions to add, delete, and search. Use this username and password to log in to idea. It works! Enter mysql with root privileges
via :~$ sudo suvia :~$ mysql -u root -p
increase user
CREATE USER 'username'@'host' IDENTIFIED BY 'password';
Authorization (I grant all permissions, so it is ALL to modify the situation)
GRANT ALL ON *.* TO 'username'@'localhost';
refresh
flush privileges; Thank you for reading this article carefully, I hope Xiaobian shared "Ubuntu 18.04 idea operation database failure example analysis" This article is helpful to everyone, but also hope that everyone more support, pay attention to the industry information channel, more relevant knowledge waiting for you to learn!
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.