QQ叫紫珊 发表于 2018-10-31 06:18:11

Hadoop 离线安装 CDH5.1 第一章:离线环境部署

mysql> show databases;  
+--------------------+
  
| Database         |
  
+--------------------+
  
| information_schema |
  
| mysql            |
  
| performance_schema |
  
| test               |
  
+--------------------+
  
4 rows in set (0.00 sec)
  
mysql> create databse amon DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
  
Query OK, 1 row affected (0.00 sec)
  
mysql> create database amon DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
  
Query OK, 1 row affected (0.00 sec)
  
mysql> create database hue DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
  
Query OK, 1 row affected (0.00 sec)
  
mysql> show databases;
  
+--------------------+
  
| Database         |
  
+--------------------+
  
| information_schema |
  
| amon               |
  
| hive               |
  
| hue                |
  
| mysql            |
  
| performance_schema |
  
| test               |
  
+--------------------+
  
7 rows in set (0.00 sec)
  
mysql> grant all on *.* to 'root'@'%' identified by 'hadoop' with grant option;
  
Query OK, 0 rows affected (0.00 sec)


页: [1]
查看完整版本: Hadoop 离线安装 CDH5.1 第一章:离线环境部署