前言:在泰國,一個全新的應用程序允許查看MySQL、PostgreSQL、Oracle和Sqlite的數據。受Beeswax應用程序的啓發,它允許您查詢關係數據庫並在表中查看它。
在hue的hue.ini配置文件中添加mysql,定位到databases位置根據服務器上需要查看的數據庫的信息更改響應配置。
簡單配置如下:
###########################################################################
# Settings for the RDBMS application
###########################################################################
[librdbms]
# The RDBMS app can have any number of databases configured in the databases
# section. A database is known by its section name
# (IE sqlite, mysql, psql, and oracle in the list below).
[[databases]]
# sqlite configuration.
## [[[sqlite]]]
# Name to show in the UI.
#nice_name=SQLite
# For SQLite, name defines the path to the database.
#name=/usr/hdp/2.5.3.0-37/hue/desktop/desktop.db
# Database backend to use.
#engine=sqlite
# Database options to send to the server when connecting.
# https://docs.djangoproject.com/en/1.4/ref/databases/
## options={}
# mysql, oracle, or postgresql configuration.
## [[[mysql]]]
# Name to show in the UI.
nice_name="My SQL DB"
# For MySQL and PostgreSQL, name is the name of the database.
# For Oracle, Name is instance of the Oracle server. For express edition
# this is 'xe' by default.
## name=mysqldb
# Database backend to use. This can be:
# 1. mysql
# 2. postgresql
# 3. oracle
engine=mysql
# IP or hostname of the database to connect to.
host=bigdata3
# Port the database server is listening to. Defaults are:
# 1. MySQL: 3306
# 2. PostgreSQL: 5432
# 3. Oracle Express Edition: 1521
port=3306
# Username to authenticate with when connecting to the database.
user=root
# Password matching the username to authenticate with when
# connecting to the database.
password=7dYDrMECSQ
# Database options to send to the server when connecting.
# https://docs.djangoproject.com/en/1.4/ref/databases/
## options={}
配置完成後重啓Hue,訪問web界面可以對mysql數據庫進行響應的操作: