当前位置:网站首页>mysql5. 7. X data authorization leads to 1141
mysql5. 7. X data authorization leads to 1141
2022-04-23 04:59:00 【GreatorMan】
be based on mysql5.7.x
1、 Database backup , Modify the configuration file after , Add the following configuration :
skip-grant-tables Skip the permission verification of the table , Users can add, delete, modify and query
2、 And then restart it mysql,
service mysqld restart
If mysql Not registered , Can find mysql/bin Below mysqld, perform ./mysqld restart It's the same
3、 View data authorization :
show grants;
4、 Modify the permissions ,
stay mysql Execute... In the database :
UPDATE `mysql`.`user` SET `Host`='localhost', `User`='root', `Select_priv`='Y', `Insert_priv`='Y', `Update_priv`='Y', `Delete_priv`='Y', `Create_priv`='Y', `Drop_priv`='Y', `Reload_priv`='Y', `Shutdown_priv`='Y', `Process_priv`='Y', `File_priv`='Y', `Grant_priv`='Y', `References_priv`='Y', `Index_priv`='Y', `Alter_priv`='Y', `Show_db_priv`='Y', `Super_priv`='Y', `Create_tmp_table_priv`='Y', `Lock_tables_priv`='Y', `Execute_priv`='Y', `Repl_slave_priv`='Y', `Repl_client_priv`='Y', `Create_view_priv`='Y', `Show_view_priv`='Y', `Create_routine_priv`='Y', `Alter_routine_priv`='Y', `Create_user_priv`='Y', `Event_priv`='Y', `Trigger_priv`='Y', `Create_tablespace_priv`='Y', `ssl_type`='', `ssl_cipher`='', `x509_issuer`='', `x509_subject`='', `max_questions`='0', `max_updates`='0', `max_connections`='0', `max_user_connections`='0', `plugin`='mysql_native_password', `authentication_string`='*AF73E80C6232D0438D09FB61B287C556B4DFE144', `password_expired`='N', `password_last_changed`='2019-06-21 13:38:30', `password_lifetime`=NULL, `account_locked`='N' WHERE (`Host`='localhost') AND (`User`='root');
5、 Comment out the configuration in the database configuration file
skip-grant-tables , And restart MYSQL The server ;
6. see
show grants;
版权声明
本文为[GreatorMan]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220553102307.html
边栏推荐
- Other problems encountered in debugging fingerprints
- Innovation training (IX) integration
- Sword finger offer: the median in the data stream (priority queue large top heap small top heap leetcode 295)
- Wine (COM) - basic concept
- Wechat payment function
- 【数据库】MySQL单表查询
- Innovation training (XI) airline ticket crawling company information
- How to exit VIM
- Innovation training (IV) preliminary preparation - server
- Deep learning notes - fine tuning
猜你喜欢

使用model.load_state_dict()时,出现AttributeError: ‘str‘ object has no attribute ‘copy‘
![[database] MySQL basic operation (basic operation ~)](/img/0c/a8d858fa74ffed2a266ca77c783c7f.png)
[database] MySQL basic operation (basic operation ~)

Simply drag objects to the item bar

Introduction to raspberry pie 3B - system installation

深度学习笔记 —— 语义分割和数据集

Innovation training (V) configuration information
![[database] MySQL single table query](/img/27/99d174219109ea7a455cfdf55e0996.png)
[database] MySQL single table query

Learning Android from scratch -- Introduction

Opencv + clion face recognition + face model training

直播带货表格模板-自动显示图片-自动关联系列商品
随机推荐
Customize the navigation bar at the top of wechat applet (adaptive wechat capsule button, flex layout)
[WinUI3]编写一个仿Explorer文件管理器
Deep learning notes - data expansion
What's the difference between error and exception
独立站运营 | FaceBook营销神器——聊天机器人ManyChat
Day. JS common methods
深度学习笔记 —— 语义分割和数据集
Agile practice | agile indicators to improve group predictability
Mac 进入mysql终端命令
Getprop property
退出vim的方法
Alibaba tip: it is better to create threads manually
Sword finger offer: symmetric binary tree (recursive iteration leetcode 101)
Learning Android from scratch -- Introduction
2022/4/22
Analysis of POM files
Leetcode -- heuristic search
How to exit VIM
Deep learning notes - fine tuning
JS determines whether the numeric string contains characters