当前位置:网站首页>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;"
边栏推荐
- todolist未完成,已完成
- 【哈希表】很简单的拉链法哈希结构,以至于效果太差,冲突太多,链表太长
- 点击事件
- 2022.6.24-----leetcode.515
- 360 second understanding of smartx hyper converged infrastructure
- Pay attention to the entrance components of official account in the applet
- Non H5 end of uni app, regional setting of status bar on the top of mobile phone
- HL7Exception: Can‘t XML-encode a GenericMessage. Message must have a recognized struct
- Camera-memory内存泄漏分析(三)
- 栖霞消防开展在建工地消防安全培训
猜你喜欢
面试阿里测开岗失败后,被面试官在朋友圈吐槽了......(心塞)
TiFlash 函数下推必知必会丨十分钟成为 TiFlash Contributor
云计算基础-0
点击事件
Some mobile phones open USB debugging, and the solution to installation failure
拖放
Qt 中 deleteLater 使用总结
Class diagram
显卡、GPU、CPU、CUDA、显存、RTX/GTX及查看方式
Kotlin uses viewpager2+fragment+bottomnavigationview to implement the style of the switching module of the bottom menu bar.
随机推荐
After Ali failed to start his job in the interview, he was roast by the interviewer in the circle of friends (plug)
Classic model alexnet
mysql 常用语句
面试阿里测开岗失败后,被面试官在朋友圈吐槽了......(心塞)
[hash table] a very simple zipper hash structure, so that the effect is too poor, there are too many conflicts, and the linked list is too long
Kotlin uses viewpager2+fragment+bottomnavigationview to implement the style of the switching module of the bottom menu bar.
计组笔记——CPU的指令流水
等保备案是等保测评吗?两者是什么关系?
解决uniapp插件robin-editor设置字体颜色和背景颜色报错的问题
给网站添加“开放搜索描述“以适配浏览器的“站点搜索“
Class diagram
评价——层次分析
点击事件
Android gap animation translate, scale, alpha, rotate
Click event
JS to achieve the effect of text marquee
. Net core learning journey
Using meta analysis to drive the development of educational robot
Preparation for wechat applet development
[paper notes] supersizing self supervision: learning to grasp from 50K tries and 700 robot hours