Comments (21)
把 CSRedisCore,Caching.CSRedis 升级到最新
from dotnetgen_mysql.
原因是最新升级 csredis 造成的。方法名统与redis-cli统一了
from dotnetgen_mysql.
xxx.db.csproj
Infrastructure.csproj
这两个项目的引用
from dotnetgen_mysql.
我把csrediscore 降级到2.6.12是可以正常的。新的是否暂时不要更新。
from dotnetgen_mysql.
升吧,没有事的,升完后重新生成一下 xxx.db 的代码
如果有类似这个文件,双击过一会就自动生成完毕
from dotnetgen_mysql.
好的,重新生成一个相关文件
from dotnetgen_mysql.
这个生成工具, 好像不支持mysql 8.0 ,会提示无法读取表, 可能与8.0的安全机制有关,
Retrieval of the RSA public key is not enabled for insecure connections.
mysql 5.7 可以读取。
from dotnetgen_mysql.
5.7 以上的高级特性没支持,因为mysql分支版本太多
from dotnetgen_mysql.
使用方面,应该没问题吧。 只是生成有些小麻烦,我另外导入到5.7中,生成文件。
from dotnetgen_mysql.
mysql 8.0 我大概知道是什么原因
你试试
Data Source={0};Port={1};User ID={2};Password={3};Initial Catalog={4};Charset=utf8
MySqlConnection 连接执行
select schema_name from information_schema.schemata where schema_name not in ('information_schema', 'mysql', 'performance_schema')
from dotnetgen_mysql.
然后以下的连接串也试试
Data Source={0};Port={1};User ID={2};Password={3};Initial Catalog={4};Charset=utf8;SslMode=none
from dotnetgen_mysql.
使用方面可以,连接成功,增加SslMode 就可以了。 生成工具的命令行,不能修改连接字符串。
from dotnetgen_mysql.
你用的是 GenMy 命令吗?看看什么版本
from dotnetgen_mysql.
dotnet tool list -g
from dotnetgen_mysql.
1.1.12 GenMy
from dotnetgen_mysql.
代码中写死了 SslMode=none,不加这个参数某些版本也会报错。
需要找两全其美的办法,你那边正确的连接串,完整的应该是怎样的?
from dotnetgen_mysql.
如果有必要,可以下载源码修改,发布一个你私人专属的客户端
源代码在:dotnetGen_mysql/GenMy/ConsoleApp.cs 527行,542行
from dotnetgen_mysql.
嗯,那有些奇怪了。 8.0下,命令工具,显示无法读取表...
5.7可以正常用命令生成代码 。
客户端最终还是使用的 8.0, 同一个数据库帐户。 工具下不可以。
我再更新时,下载源代码,研究一下,是哪里出错。谢谢你!
from dotnetgen_mysql.
https://blog.csdn.net/Yuriey/article/details/80423504
关于JDBC连接数据库时出现的Public Key Retrieval is not allowed错误
以及下载 MySql.Data 源码,查看后确定基本是要传递 AllowPublicKeyRetrieval=true 参数,但需要确认老版本不会因为此参数影响连接。
dotnet tool update GenMs -g
更新到 1.1.13 试试连 mysql server 8.0,目前已确认连接 mysql server 5.6,mariadb 10 不会报错。
from dotnetgen_mysql.
厉害,升级解决了,谢谢!
from dotnetgen_mysql.
dotnet tool update GenMy -g
是mysql ,这个工具名称是GenMy
升级成功了。1.1.13了。
from dotnetgen_mysql.
Related Issues (5)
- No database selected. HOT 1
- Error occurred while updating mysql HOT 4
- 发现问题,生成代码会等待很久,之后显示失败 HOT 4
- 利用工具生成代码遇到故障 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotnetgen_mysql.