Umbraco 无法启动.已配置连接字符串但 Umbraco 无法连接到数据库 [英] Umbraco cannot start. A connection string is configured but the Umbraco cannot connect to the database
问题描述
我将 Umbraco CMS v7.4 与 SQL Server 2014 一起使用,该项目运行良好,直到几个小时前开始出现错误:
I'm using Umbraco CMS v7.4 with SQL Server 2014, the project was working fine until a few hours ago, when an error started showing up:
Umbraco 无法启动.已配置连接字符串但 Umbraco 无法连接到数据库
Umbraco cannot start. A connection string is configured but the Umbraco cannot connect to the database
当我尝试打开网站时出现错误,请参见下图:
The error occurs when I tried to open the website, see the image below:
我尝试了以下方法:
- 检查 SQL Server 是否正在运行
- 检查了
web.config
中的连接字符串 credentials
感谢任何帮助.
推荐答案
尝试了几次后,连我加载了备份的数据库,发现是数据库登录导致的,连接字符串中的用户有密码已启用过期(密码已过期).
After a few tries, even I loaded the backed up DB, I found that it caused by the DB login, the user in the connection string was having a password expiration enabled (the password had expired).
所以,这就是我所做的:
So, this is what I did:
- 打开 SQL 服务器
- 以连接字符串中使用的用户身份登录
- 创建了一个新密码
- 更新了 web.config 连接字符串密码"
希望这会有所帮助
这篇关于Umbraco 无法启动.已配置连接字符串但 Umbraco 无法连接到数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!