mysql数据库用户创建及授权

create user 'hive'@'%' identified by 'hive';

create database hive default character set utf8mb4 collate utf8mb4_unicode_ci;

grant all on hive.* to 'hive'@'%' identified by 'xxx';

posted @ 2019-02-20 14:13  bioamin  阅读(295)  评论(0编辑  收藏  举报