如何在Linux上安裝與配置Hadoop
請(qǐng)問(wèn)該如何在Linux上安裝與配置Hadoop?
開(kāi)滿天機(jī)
2019-09-09 13:10:51
TA貢獻(xiàn)1790條經(jīng)驗(yàn) 獲得超9個(gè)贊
配置:
# 更改root用戶密碼
mysqladmin -u root -h localhost password 'new_password'
# 使用root用戶登錄
mysql -u root -h localhost
# 創(chuàng)建數(shù)據(jù)庫(kù)用戶sa,密碼為 123456,從任意主機(jī)可訪問(wèn)
create user 'sa'@'%' identified by '123456';
# 創(chuàng)建數(shù)據(jù)庫(kù)mydb
create database mydb;
# 將mydb數(shù)據(jù)庫(kù)的所有權(quán)限賦予sa用戶
grant all privileges on mydb.* to 'sa'@'%' with grant option;
舉報(bào)