启动服务
service mysql start
进入MySQL
mysql -uroot -p
然后接下以下操作
mysql> create user hive identified by 'hive'; //创建一个用户名为hive,密码为hive的数据
mysql> create database hive; //创建一个叫做hive的数据库
mysql> grant all on hive.* to hive@'%' identified by 'hive'; //给hive用户授权
mysql> grant all on hive.* to hive@'localhost' identified by 'hive'; //给hive用户授权
mysql> flush privileges; //更新
mysql> exit; //退出mysql