easysoft / zentaopms

Zentao is an agile(scrum) project management system/tool, Free Upgrade Forever!​
http://www.zentao.pm
Other
1.29k stars 322 forks source link

禅道容器不支持包含两个 - 的 mysql host #128

Closed qiaofeng1227 closed 2 months ago

qiaofeng1227 commented 9 months ago

描述 (Description)

连接 MySQL 容器时,当容器名包含两个 "-" 时,禅道连接数据库失败 ZT_MYSQL_HOST=zentao-weuowe--mysql

 10:40:12.80 Welcome to the Easysoft ZenTao 18.8 container
 10:40:12.80 Subscribe to project updates by watching https://www.zentao.net
 10:40:12.80 Submit issues and feature requests at https://www.zentao.net/ask.html
 10:40:12.80 
 10:40:12.81 INFO  ==> Prepare persistence directories.
 10:40:12.89 INFO  ==> Render php.ini with environment variables.
 10:40:12.90 INFO  ==> Render apache sites config with envionment variables.
 10:40:12.93 INFO  ==> Check whether the MySQL is available.
 10:40:12.93 INFO  ==> Waiting for the installation wizard to complete.
 10:40:13.93 INFO  ==> MySQL is ready.
 10:40:13.94 INFO  ==> Waiting for the installation wizard to complete.
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-weuowe' at line 1

如果改为ZT_MYSQL_HOST=zentao_weuowe--mysql,则运行正常

期望 (Expectation)

支持两个 -

结果 (Result)

支持两个 -

软件版本 (Software version)

18.8

ysicing commented 8 months ago

如何部署,如果方便请提供一下,谢谢