yum -y install MysqL-server
service MysqLd start
初始化MysqL数据库(默认root的密码为空,按提示一步步完成)
/usr/bin/MysqL_secure_installation
将MysqL加入开机启动
chkconfig MysqLd on
允许远程登录MysqL
首先登录MysqL数据,然后执行下面两行语句:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'hadoop' WITH GRANT OPTION;flush privileges;
ok,安装完成