当前位置:网站首页>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
边栏推荐
- 静态流水线和动态流水线的区别认识
- No such file or directory problem while executing shell
- Introduction to load balancing
- Manually write smart pointer shared_ PTR function
- 【数据库】MySQL基本操作(基操~)
- JS engine loop mechanism: synchronous, asynchronous, event loop
- The unity camera rotates with the mouse
- Better way to read configuration files than properties
- 和谐宿舍(线性dp / 区间dp)
- Details related to fingerprint payment
猜你喜欢
Innovation training (VI) routing
Deep learning notes - object detection and dataset + anchor box
DIY is an excel version of subnet calculator
JS engine loop mechanism: synchronous, asynchronous, event loop
Deep learning notes - semantic segmentation and data sets
深度学习笔记 —— 数据增广
[2022 ICLR] Pyraformer: Low-Complexity Pyramidal Attention for Long-Range 时空序列建模和预测
View analysis of scenic spots in ArcGIS
用LCR表完美测试无线充电系统中的线圈
MySQL -- execution process and principle of a statement
随机推荐
Windows remote connection to redis
What is a blocking queue? What is the implementation principle of blocking queue? How to use blocking queue to implement producer consumer model?
【数据库】MySQL单表查询
Innovation training (VI) routing
多线程基本概念(并发与并行、线程与进程)和入门案例
What are the redis data types
Painless upgrade of pixel series
Pixel mobile phone brick rescue tutorial
Deep learning notes - data expansion
Day. JS common methods
js 判断数字字符串中是否含有字符
List< Map> Replication: light copy and deep copy
DIY 一个 Excel 版的子网计算器
Sword finger offer: push in and pop-up sequence of stack
What's the difference between error and exception
Mac 进入mysql终端命令
Record the ThreadPoolExecutor main thread waiting for sub threads
Detailed explanation of hregionserver
Pixel 5 5g unlocking tutorial (including unlocking BL, installing edxposed and root)
Download PDF from HowNet (I don't want to use CAJViewer anymore!!!)