当前位置:网站首页>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
- Day.js 常用方法
- DIY is an excel version of subnet calculator
- Unity rawimage background seamlessly connected mobile
- Innovation training (IV) preliminary preparation - server
- Detailed explanation of the differences between TCP and UDP
- How can continuous integration (CI) / continuous delivery (CD) revolutionize automated testing
- CLion+OpenCV identify ID number - detect ID number
- Thoughts on a small program
- List< Map> Replication: light copy and deep copy
猜你喜欢
AQS source code reading
Excel uses the functions of replacement, sorting and filling to comprehensively sort out financial data
POI export message list (including pictures)
跨境电商 | Facebook 和 Instagram:哪个社交媒体更适合你?
使用model.load_state_dict()时,出现AttributeError: ‘str‘ object has no attribute ‘copy‘
Leetcode 1547: minimum cost of cutting sticks
MySQL memo (for your own query)
【数据库】表的查看、修改和删除
解决ValueError: Argument must be a dense tensor: 0 - got shape [198602], but wanted [198602, 16].
Innovation training (V) configuration information
随机推荐
信息学奥赛一本通 1212:LETTERS | OpenJudge 2.5 156:LETTERS
Com alibaba. Common methods of fastjson
Sword finger offer: the median in the data stream (priority queue large top heap small top heap leetcode 295)
Windows remote connection to redis
scp命令详解
redis和mysql区别
Progress of innovation training (IV)
No such file or directory problem while executing shell
Record the ThreadPoolExecutor main thread waiting for sub threads
TypeError: ‘Collection‘ object is not callable. If you meant to call the ......
Alibaba tip: it is better to create threads manually
C. Tree Infection(模拟+贪心)
Excel protects worksheets and workbooks from damage
Other problems encountered in debugging fingerprints
Unity rawimage background seamlessly connected mobile
Unity攝像頭跟隨鼠標旋轉
DIY is an excel version of subnet calculator
Sword finger offer: push in and pop-up sequence of stack
PHP+MySQL 制作留言板
使用model.load_state_dict()时,出现AttributeError: ‘str‘ object has no attribute ‘copy‘