首页 > 数据库技术 > 详细

mysql创库授权

时间:2020-03-30 22:36:46      阅读:63      评论:0      收藏:0      [点我收藏+]
创建库
create database zabbix character set utf8 collate utf8_bin;
创建用户
create user ‘slave‘@‘IP‘ identified by ‘passwd‘;
直接授权及建用户
grant all privileges on busgps.* to ‘busgps‘@‘%‘ identified by ‘passwd‘ with grant option;
grant all privileges on exam.* to ‘exam‘@‘%‘ identified by ‘passwd‘ with grant option;
grant all privileges on entrycity.* to ‘entrycity‘@‘%‘ identified by ‘passwd‘ with grant option;
flush privileges;

show grants for ‘busgps‘@‘%‘;

mysql创库授权

原文:https://www.cnblogs.com/kylingx/p/12601706.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!