连接 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
描述 (Description)
连接 MySQL 容器时,当容器名包含两个 "-" 时,禅道连接数据库失败 ZT_MYSQL_HOST=zentao-weuowe--mysql
如果改为ZT_MYSQL_HOST=zentao_weuowe--mysql,则运行正常
期望 (Expectation)
支持两个 -
结果 (Result)
支持两个 -
软件版本 (Software version)
18.8