如何在Linux上安裝與配置Hadoop
3 回答

富國滬深
TA貢獻(xiàn)1790條經(jīng)驗 獲得超9個贊
配置:
# 更改root用戶密碼
mysqladmin -u root -h localhost password 'new_password'
# 使用root用戶登錄
mysql -u root -h localhost
# 創(chuàng)建數(shù)據(jù)庫用戶sa,密碼為 123456,從任意主機(jī)可訪問
create user 'sa'@'%' identified by '123456';
# 創(chuàng)建數(shù)據(jù)庫mydb
create database mydb;
# 將mydb數(shù)據(jù)庫的所有權(quán)限賦予sa用戶
grant all privileges on mydb.* to 'sa'@'%' with grant option;
添加回答
舉報
0/150
提交
取消