当前位置:网站首页>An error occurred using the connection to database 'on server' 10.28.253.2‘
An error occurred using the connection to database 'on server' 10.28.253.2‘
2022-06-26 03:44:00 【yuyue5945】
#EF Core Migration update-database When An error occurred using the connection to database ‘’ on server ‘10.28.253.2’
problem : Doing it EF Core Migration When ,Update-dataBase The instruction always reports an error. The error content is “An error occurred using the connection to database ‘’ on server ‘10.28.253.2’”
When doing data migration , Follow the routine operation
- Add-Migration init( Execute this command to generate a directory (Migration))
- Update-Database init
Before using the database connection string, you can query successfully , The string content is as follows
"ConnectionStrings": {
"Default": "Data Source = 10.28.253.2;Initial Catalog = SignalR;User Id = sa;Password =Ecsgui123;"
But after copying it today , Error in dead or alive execution , The error content is shown in the figure below :

When you find your own mistakes , I also found the wrong sentence , Using the green icon “Access denied for user”, This is the last line of the execution error , There's a program that doesn't even appear “10.28.160.250” This address , Looking for a mess of code
Check the error code carefully , Find the wrong content at the beginning IP That's right. , But the hint doesn't connect , Red box content , So I added... To the connection string “Integrated Security=False;” Content , The problem is solved here .
“ConnectionStrings”:
“Default”: “Data Source = 10.28.253.2;Initial Catalog = SignalR;User Id = sa;Integrated Security=False;Password =Ecsgui123;”
se;Password =Ecsgui123;"
边栏推荐
- Qt 中 deleteLater 使用总结
- 2022.6.23-----leetcode.30
- 2022年挖财证券开户安全嘛?
- Classic model - Nin & googlenet
- 【LOJ#6718】九个太阳「弱」化版(循环卷积,任意模数NTT)
- Digital twin intelligent water service, breaking through the development dilemma of sponge City
- 路由跳轉之點擊列錶的操作按鈕,跳轉至另一個菜單頁面並激活相應的菜單
- Popupwindow utility class
- After Ali failed to start his job in the interview, he was roast by the interviewer in the circle of friends (plug)
- 云计算基础-0
猜你喜欢

MySQL高级部分( 四: 锁机制、SQL优化 )

Camera-CreateCaptureSession

Uni app custom selection date 2 (September 16, 2021)

When the tiflash function is pushed down, it must be known that it will become a tiflash contributor in ten minutes

Open Camera异常分析(一)

MySQL addition, deletion, query and modification (primary level)

The kotlin project is running normally and the R file cannot be found

Digital twin intelligent water service, breaking through the development dilemma of sponge City

计组笔记 数据表示与运算 校验码部分

MySQL高級篇第一章(linux下安裝MySQL)【下】
随机推荐
机器学习笔记 - 时间序列的趋势分量
小程序或者for循序要不要加key?
Uni app QR code scanning and identification function
navicat16无线试用
2022.6.23-----leetcode.30
progress bar
虫子 拷贝构造 运算符重载
Is Guoxin golden sun reliable? Is it safe to open a securities account?
动态线段树leetcode.715
todolist未完成,已完成
MySQL addition, deletion, query and modification (primary level)
Binary search
USB driver -debug
Communication mode between processes
路由跳轉之點擊列錶的操作按鈕,跳轉至另一個菜單頁面並激活相應的菜單
View of MySQL
Cultivate children's creativity under the concept of project steam Education
小米电视的网页和珠宝的网页
类图
Group note data representation and operation check code