怎么給Linux用戶user1授予db2數(shù)據(jù)庫管理員的權(quán)限?
查看當前用戶:selectuser();
查看用戶的權(quán)限:showgrantsfor'username'@'localhost'
查看當前用戶的權(quán)限:showgrants;
修改root用戶的密碼
setpasswordfor'root'@'localhost'=password('新密碼');
或者:
updateusersetpassword=password('newpass')whereuser='root';
flushprivileges;
PRIVILEGES;