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';

原文地址:https://www.cnblogs.com/students/p/10406296.html