【发布时间】:2021-02-04 15:12:11
【问题描述】:
我想在我的 .Net Core 项目上使用实体框架核心来连接到 mysql db。当我尝试搭建脚手架时出现访问被拒绝错误。
Authentication to host 'MyHost.com' for user 'root' using method 'caching_sha2_password' failed with message: Access denied for user 'root'@'MYIP' (using password: YES)
我正在使用这个命令
Scaffold-DbContext "server=MyHost.com;port=9999;user=root;password=Myunbreakablepsw;database=MyDb" MySql.Data.EntityFrameworkCore -OutputDir dbContext -f
谢谢
【问题讨论】:
标签: c# mysql asp.net-core