首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在mysql数据库中设置超级权限

如何在mysql数据库中设置超级权限
EN

Stack Overflow用户
提问于 2015-02-19 19:18:29
回答 1查看 26关注 0票数 0

下面是创建视图查询

代码语言:javascript
复制
CREATE ALGORITHM=UNDEFINED DEFINER=`serve3_user465`@`%` SQL SECURITY DEFINER VIEW `constantcontact_customers_agents` AS select `customers`.`CustomerID` AS `CustomerID`,`customers`.`AgentID` AS `AgentID`,`customers`.`AccountType` AS `CustomerAccountType`,`customers`.`FirstName` AS `CustomerFirstName`,`customers`.`LastName` AS `CustomerLastName`,`customers`.`Address` AS `CustomerAddress`,`customers`.`City` AS `CustomerCity`,`customers`.`State` AS `CustomerState`,`customers`.`Zip` AS `CustomerZip`,`customers`.`Phone` AS `CustomerPhone`,`customers`.`Cell` AS `CustomerCell`,`customers`.`Fax` AS `CustomerFax`,`customers`.`Email` AS `CustomerEmail`,`customers`.`Dob` AS `CustomerDob`,`agents`.`FirstName` AS `AgentFirstName`,`agents`.`LastName` AS `AgentLastName`,`agents`.`CompanyName` AS `AgentCompanyName`,`agents`.`ApiUsername` AS `ApiUsername`,`agents`.`ApiPassword` AS `ApiPassword` from (`customers` join `agents` on((`customers`.`AgentID` = `agents`.`AgentID`))) where ((`agents`.`ApiUsern[...]

MySQL said: Documentation
#1227 - Access denied; you need (at least one of) the SUPER privilege(s) for this operation 
EN

回答 1

Stack Overflow用户

发布于 2015-02-19 19:40:59

您需要以其他用户(具有'super‘权限的用户)身份登录,或者将super权限分配给您的用户

使用具有GRANT权限的用户连接到数据库,然后运行:

代码语言:javascript
复制
GRANT super ON *.* to 'your_user'@'%';

不过,您可能需要先检查分配超级权限的安全性问题

GRANT Syntax

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28605005

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档