Open wyDuang opened 3 years ago
我找到问题了,被你们的文档误导了,环境变量配置参数的前面都应该加上 SSCMS_
- SSCMS_DATABASE_CONNECTION_STRING=server=127.0.0.1;port=3306;database=SSCMS_Docker;uid=root;pwd=123456;SSL Mode=None
- SSCMS_REDIS_CONNECTION_STRING=127.0.0.1:6379,password=123456
Sqlserver和mysql链接都报错,我本地测试了都可以连的,真是醉了
Data Source=localhost;Initial Catalog=SSCMS;Persist Security Info=True;User ID=sa;Password=123456 报错: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server)
server=localhost;port=3306;database=SSCMS_Docker;uid=root;pwd=123456;Allow User Variables=True 报错: Unable to connect to any of the specified MySQL hosts.
默认不需要提前设置数据库的链接啊,直接在安装界面输入就可以啊。
默认不需要提前设置数据库的链接啊,直接在安装界面输入就可以啊。
docker启动必须要配置环境变量
我也是相同问题 提示Object reference not set to an instance of an object. 连接字符串 无法获取
我找到问题了,被你们的文档误导了,环境变量配置参数的前面都应该加上 SSCMS_
- SSCMS_DATABASE_CONNECTION_STRING=server=127.0.0.1;port=3306;database=SSCMS_Docker;uid=root;pwd=123456;SSL Mode=None - SSCMS_REDIS_CONNECTION_STRING=127.0.0.1:6379,password=123456
对,需要加上前缀,我们完善一下文档
SS CMS 安装向导 - 3 数据库设置 - 连接字符串读取不到,请问是我上面的环境变量配置错误吗