当前位置:网站首页>[Err] 1045 - Access denied for user ‘root‘@‘%‘ (using password: YES)
[Err] 1045 - Access denied for user ‘root‘@‘%‘ (using password: YES)
2022-06-11 19:58:00 【lv_ code】
An error occurs when a user is granted permission
[Err] 1045 - Access denied for user 'root'@'%' (using password: YES)
terms of settlement :
mysql> UPDATE mysql.user SET Grant_priv='Y', Super_priv='Y' WHERE User='root';
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Bye
[[email protected] root]# systemctl restart mysql # Remember to restart mysql service
Then assign permission
CREATE USER 'newuser'@'%' IDENTIFIED BY '123456';
grant all privileges on *.* to 'newuser'@'%' ;
边栏推荐
- Database introduction
- [laravel series 7.5] event system
- 干货!基于序列超图神经网络的信息扩散预测
- Apache APISIX 在Amazon Graviton3 上的安装和性能测试
- Template and requirements of curriculum design of reinforced concrete structure in autumn 21 of Dagong [standard answer]
- 7905 和TL431 负电压稳压电路 - 相对于电源正极的稳压和浮地电路
- These postgraduate entrance examination majors are easy to be confused. If you make a mistake, you will take the exam in vain!
- Pyqt5 tips - button vertical display method, QT designer sets button vertical display.
- In 2021, the global cement and aggregate revenue will be about USD 204320 million, and it is expected to reach USD 242670 million in 2028
- MySQL——事务
猜你喜欢

30讲 线性代数第二讲 矩阵

Flutter Doctor affiche les solutions que xcode n'a pas installées

Qubicle notes: self set shortcut keys (attached with Lao Wang's self set shortcut key file)

Linux环境安装mysql数据库详细教程(含卸载和密码重置过程)

AHB2APB_ Bridge design
![[Sichuan University] information sharing of the first and second examinations](/img/0d/a6392e6b92bb689e90c038ffac9dd8.jpg)
[Sichuan University] information sharing of the first and second examinations

Flutter--Button浅谈

Summary 111111111111111111111
【求助】请问如何让微信公众号文章在外部浏览器中打开后还能显示下方的精选留言?

7905 和TL431 负电压稳压电路 - 相对于电源正极的稳压和浮地电路
随机推荐
周鸿祎:想做直播带货抹不下面子 数据勒索成突出的安全威胁
Off line operation of situation and policy (version) of Dayong in autumn 21 [standard answer]
APB2standard_ handshake_ Bridge design
Skywalking source code analysis Part 5 - server configuration configuration module startup
29. Objet de localisation
Are there any techniques for 3D modeling?
Flutter doctor 显示xcode没有安装的解决办法
Jmeter安装
Course design for construction organization, School of distance and continuing education, Dalian University of technology [standard answer]
This article introduces you to the infrastructure of sofaregistry
STL容器嵌套容器
全名单!2022泰晤士亚洲大学排名公布!
Module 8 operation
Qubicle notes: Hello voxel
Full list! 2022 Times Asia University Rankings announced!
Comp3411 -prolog language
Yolov3 pytoch code and principle analysis (II): network structure and loss calculation
Summary 111111111111111111111
RTL arbiter design
统一异常处理