使用 MySQL 存储 Hue 元数据
2024-10-08 09:43:02
1.在 MySQL 中增加数据库 hue
2.编辑 hue.ini 文件
[[database]]
# Database engine is typically one of:
# postgresql_psycopg2, mysql, sqlite3 or oracle.
#
# Note that for sqlite3, 'name', below is a path to the filename. For other backends, it is the database name
# Note for Oracle, options={"threaded":true} must be set in order to avoid crashes.
# Note for Oracle, you can use the Oracle Service Name by setting "host=" and "port=" and then "name=<host>:<port>/<service_name>".
# Note for MariaDB use the 'mysql' engine.
engine=mysql
host=cen-ubuntu
port=3306
user=root
password=ubuntu
# conn_max_age option to make database connection persistent value in seconds
# https://docs.djangoproject.com/en/1.9/ref/databases/#persistent-connections
## conn_max_age=0
# Execute this script to produce the database password. This will be used when 'password' is not set.
## password_script=/path/script
name=hue
3.初始化数据库
$ build/env/bin/hue syncdb
$ build/env/bin/hue migrate
最新文章
- Quartz.NET---任务调度框架
- Revit如何模型导入到InfraWorks中
- iOS: Crash文件解析(一)
- 3Sum Closest
- caffe中各层的作用:
- Could not create the driver from NHibernate.Driver.SQLite20Driver
- SilkTest天龙八部系列4-ChildWin
- 面向中国 Azure 开发者发布开源解决方案指南
- 关于 typings install 的使用
- 30款基本UX工具 - 用户测试与反馈工具
- HDU ACM 1071 The area 定积分计算
- 用Nodejs做一个简单的小爬虫
- 学习之";setjmp和longjmp函数";
- 2018/03/07 每日一个Linux命令 之 cat
- Mac下JDK、Maven、Tomcat、Git开发安装及环境变量配置
- leetcode之Maximal Square
- PHP中运算符优先级
- RequestMappingHandlerMapping 详解
- mysql数据库的存储过程
- 【JS】JS中对于this的理解
热门文章
- ring0 ShadowSSDTHook
- 初见git和github
- NW.js开发环境的搭建
- 【洛谷P2296】[NOIP2014]寻找道路
- 【luogu P1462 通往奥格瑞玛的道路】 题解
- 【题解】POJ 2115 C Looooops (Exgcd)
- Access用OleDbParameter更新/插入数据
- mysql substring_index()查询某个字符中以某个分割符分割后的值
- 2018-03-21 11:34:44 java脚本批量转换java utf-8 bom源码文件为utf-8编码文件
- Sass 基础(八)