oozie更改預設資料庫為mysql
阿新 • • 發佈:2019-01-31
1、在mysql中設定訪問許可權
CREATE database oozie DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '123456' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'10.27.226.73' IDENTIFIED BY '123456' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'hadoop06' IDENTIFIED BY '123456' WITH GRANT OPTION;
flush privileges;
檢視是否賦予正常許可權:
use mysql;
SELECT User, Password, Host FROM user;