mysql 8.0 root使用者誤刪如何恢復
阿新 • • 發佈:2018-12-17
1.修改配置檔案,獲取許可權登入 [email protected]#vi /etc/my,cnf 新增:–skip-grant-tables [email protected]#systemctl restart mysqld 2.登入建立root使用者 [email protected]#mysql mysql>use mysql; mysql>insert into user(User,authentication_string,ssl_cipher x509_issuer x509_subject) values(‘root’,’’,’’,’’,’’); 3.更新root使用者許可權