这里写目录标题
docker 连接mysql
2122端口
#查看CONTAINER ID
docker ps
#删除CONTAINER ID
docker rm -f CONTAINER ID
docker images
#进入 cd star_scripts
修改start_sandbox.sh,start_sandbox-hdf.sh,start_sandbox-hdp.sh
三个文件都添加-p 3306:3306 \
执行
./start_sandbox-hdp.sh
2222端口
登录的密码为hadoop
#依次操作
(current) UNIX password:hadoop
New password: bigdatahadoop
Retype new password: bigdatahadoop
ambari-admin-password-reset
mysql -uroot -phadoop
use mysql
grant all privileges on *.* to 'root' @'%' identified by 'hadoop';
flush privileges;