首页 > 数据库技术 > 详细

【原创】大叔经验分享(50)hue访问mysql(librdbms)

时间:2019-04-02 13:43:48      阅读:148      评论:0      收藏:0      [点我收藏+]

 cloudera manager安装hue后想开启访问mysql(librdbms)需要在这里配置

技术分享图片

添加配置如下

[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]]
    # mysql, oracle, or postgresql configuration.
    [[[mysql]]]
      # Name to show in the UI.
      nice_name="db_dataone"

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

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

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

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

注意:[[databases]]下可添加多个[[[mysql]]]或其他数据库

 

然后重启hue

 

【原创】大叔经验分享(50)hue访问mysql(librdbms)

原文:https://www.cnblogs.com/barneywill/p/10641590.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!