zentaopms icon indicating copy to clipboard operation
zentaopms copied to clipboard

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

Open qiaofeng1227 opened this issue 2 years ago • 1 comments

描述 (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

qiaofeng1227 avatar Nov 22 '23 02:11 qiaofeng1227

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

ysicing avatar Dec 28 '23 09:12 ysicing