授权
mysql> grant all privileges on *.* to ambari@'localhost' identified by 'bigdata';
Query OK, 0 rows affected (0.00 sec)
刷新
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> grant all privileges on *.* to ambari@'localhost' identified by 'bigdata';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)