mysql数据库的安装
First1:下载Hive
First2:在线安装mysql相关的软件包
yum install -y mysql
yum install -y mysql-server
yum install -y mysql-devel
First3:启动mysql的服务
/etc/init.d/mysqld start
chkconfig mysqld on
First4:进入mysql的客户端然后进行授权
mysql
use mysql
配置远程连接
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
flush privileges;
First5:设置root用户链接mysql的密码
update user set password=password('123456') where user='root';
<