Skip to content

Commit 87131f0

Browse files
committed
update mysql parameters auth.password and fix regex
Signed-off-by: xingcan-ltc <[email protected]>
1 parent a35c603 commit 87131f0

File tree

4 files changed

+22
-13
lines changed

4 files changed

+22
-13
lines changed

catalog/mysql/apps/mysql.app/app.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ spec:
1313
properties:
1414
version: "9.23.0"
1515
architecture: "replication"
16-
auth:
17-
rootPassword: Kdp@mysql123
18-
replicationPassword: Replicat@mysql123
19-
username: bdos_dba
20-
password: KdpDba@mysql123
2116
resources:
2217
limits:
2318
cpu: '2.0'

catalog/mysql/x-definitions/app-mysql.cue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -348,28 +348,28 @@ template: {
348348
// +ui:order=4
349349
auth: {
350350
// +ui:description=mysql root的密码, 初次安装时使用此配置,应用更新时更改此配置mysql密码保持不变, 可在应用端修改密码后更新配置,以供其他应用使用。
351-
// +pattern=^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[!@#$%^&*()-_=+[\]{}|;:'",.<>?/]).{8,}$
351+
// +pattern=(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[\W_]).{8,}
352352
// +ui:options={"format": "password", "showPassword": true}
353353
// +ui:order=1
354354
// +err:options={"pattern":"密码要求如下:\n1、长度大于8个字符\n2、密码中至少包含大小写字母、数字、特殊字符"}
355-
rootPassword: string
355+
rootPassword: *"Kdp@mysql123" | string
356356
// +ui:description=mysql 备份用户的密码, 初次安装时使用此配置,应用更新时更改此配置mysql密码保持不变, 可在应用端修改密码后更新配置,以供其他应用使用。
357-
// +pattern=^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[!@#$%^&*()-_=+[\]{}|;:'",.<>?/]).{8,}$
357+
// +pattern=(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[\W_]).{8,}
358358
// +ui:options={"showPassword": true}
359359
// +ui:order=2
360360
// +err:options={"pattern":"密码要求如下:\n1、长度大于8个字符\n2、密码中至少包含大小写字母、数字、特殊字符"}
361361
// +ui:hidden={{rootFormData.architecture == "standalone"}}
362-
replicationPassword: string
362+
replicationPassword: *"Replicat@mysql123" | string
363363
// +ui:description=mysql dba用户名
364364
// +ui:options={"disabled": true}
365365
// +ui:order=3
366366
username: *"bdos_dba" | string
367367
// +ui:description=mysql dba密码, 初次安装时使用此配置,应用更新时更改此配置mysql密码保持不变, 可在应用端修改密码后更新配置,以供其他应用使用。
368-
// +pattern=^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[!@#$%^&*()-_=+[\]{}|;:'",.<>?/]).{8,}$
368+
// +pattern=(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[\W_]).{8,}
369369
// +ui:options={"showPassword": true}
370370
// +ui:order=4
371371
// +err:options={"pattern":"密码要求如下:\n1、长度大于8个字符\n2、密码中至少包含大小写字母、数字、特殊字符"}
372-
password: string
372+
password: *"KdpDba!mysql123" | string
373373
}
374374
// +ui:description=mysql资源配置
375375
// +ui:order=5
@@ -419,4 +419,4 @@ template: {
419419
// +ui:options={"type": "textarea", "rows": 40, "placeholder": "[mysqld]\nport=3306"}
420420
"mysqlConfig": string
421421
}
422-
}
422+
}

catalog/superset/apps/superset.app/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@ Superset 是一个快速、轻量级、直观的工具,提供了丰富的选
1111

1212
#### 2.2 如何创建一个 Superset Dashboard
1313
请参考:https://superset.apache.org/docs/using-superset/creating-your-first-dashboard#creating-your-first-dashboard
14+
15+
### 3.FAQ
16+
17+
1. 启动报错
18+
19+
`sqlalchemy.exc.OperationalError: (MySQLdb._exceptions.OperationalError) (2005, "Unknown server host 'xxxxx@yyyy' (-2)")`
20+
请检查数据库密码中是否包含`@`字符,如果包含请修改数据库密码。该报错是由于 Superset 解析 SQLAlchemy URL (dialect+driver://username:password@host:port/database) 时候错误识别 host 导致的。

catalog/superset/apps/superset.app/i18n/en/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,11 @@ After logging in, you can change your password within the Superset application.
99
Note: If you encounter a `500 Internal Server Error` upon first access, please try again later. Superset requires time to initialize data upon startup, and you need to wait for the backend to complete its startup process. Depending on the configuration, this may take from a few minutes to over ten minutes.
1010

1111
#### 2.2 How to Create a Superset Dashboard
12-
Please refer to: https://superset.apache.org/docs/using-superset/creating-your-first-dashboard#creating-your-first-dashboard
12+
Please refer to: https://superset.apache.org/docs/using-superset/creating-your-first-dashboard#creating-your-first-dashboard
13+
14+
15+
### 3.FAQ
16+
17+
1. Startup Error
18+
`sqlalchemy.exc.OperationalError: (MySQLdb._exceptions.OperationalError) (2005, "Unknown server host 'xxxxx@yyyy' (-2)")`
19+
Please verify whether the database password includes the @ character. If it does, you should update the database password. This error arises because Superset misinterprets the host when parsing the SQLAlchemy URL (dialect+driver://username:password@host:port/database).

0 commit comments

Comments
 (0)