MySql教程

Hadoop组件搭建-Mysql

本文主要是介绍Hadoop组件搭建-Mysql,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

Mysql数据库的安装

检查是否有冲突包

rpm -qa | grep mariadb

卸载

rpm -e --nodeps mariadb-libs-5.5.56-2.el7.x86_64

安装

rpm -ivh mysql-community-common-5.7.18-1.el7.x86_64.rpm

rpm -ivh mysql-community-libs-5.7.18-1.el7.x86_64.rpm

rpm -ivh mysql-community-client-5.7.18-1.el7.x86_64.rpm

rpm -ivh mysql-community-server-5.7.18-1.el7.x86_64.rpm --force --nodeps

启动mysql服务

service mysld start

查看初始密码

grep “password” /var/log/mysqld.log

修改密码

use mysql

set password =password(‘admin’);

打开远程访问(在之后的Hive、Sqoop中会用到)

GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ IDENTIFIED BY ‘admin’;

flush privileges;

这篇关于Hadoop组件搭建-Mysql的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!