码迷,mamicode.com
首页 > 数据库 > 详细

Enable DB Query in HUE web UI

时间:2014-10-31 15:55:19      阅读:412      评论:0      收藏:0      [点我收藏+]

标签:hue

put configuration in HUE as below:

bubuko.com,布布扣


[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=/tmp/sqlite.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=dbname

      # 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=mysql-server-ip

      # 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=username

      # Password matching the username to authenticate with when
      # connecting to the database.
      password=password

      # Database options to send to the server when connecting.
      # https://docs.djangoproject.com/en/1.4/ref/databases/
      ## options={}


restart HUE service


bubuko.com,布布扣


ok

本文出自 “Ilovecat(个人笔记)” 博客,请务必保留此出处http://hj192837.blog.51cto.com/655995/1570390

Enable DB Query in HUE web UI

标签:hue

原文地址:http://hj192837.blog.51cto.com/655995/1570390

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!