MySql .Net 连接器是特定于版本的
当您安装 MySql 的 .Net 连接器时,它会更改 .net 环境的 machine.cfg 并在数据库提供程序部分添加一个条目,该条目引用您已安装的连接器的特定版本。
这意味着每当您将本地开发计算机更新到较新版本的连接器时,您也需要更新生产服务器。使用 AWS EC2 环境这意味着创建一个新的 AMI 并更新您的 AutoScaler 设置等,这似乎也会终止所有现有实例!
虽然我承认这是一个可行的过程,但它远非理想,因为这可能是一个人们可能会忘记的领域,并且添加到拙劣的更新可能会导致漫长的停机时间......
有谁知道有一种方法可以解决这个问题这样您就可以开始使用更新版本的连接器,而无需先创建新的 AMI?
非常感谢,
when you install MySql's .Net connector it alters the machine.cfg of your .net environment and adds an entry in the db providers section which refers to the specific version of the connector you've installed.
This means whenever you update your local dev machines to a newer version of the connector you'll need to update your production server as well. Working with the AWS EC2 environment this means making a new AMI and updating your AutoScaler settings, etc. which incidentally seems to terminate all existing instances too!
Whilst I admit this is a workable process but it's far from ideal as this is likely to be an area where one might forget and to add to a botched update is a potentially lengthy downtime...
Does anyone know of a way to get around this so that you can start using a newer version of the connector without having to first make a new AMI?
Many thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不必安装 MySQL 连接器,只需复制 DLL 即可。
我不知道 AWS 或 EC2 是什么,但希望这是有用的信息。 :)
You don't have to install the MySQL connector, you can just copy the DLL around.
I have no idea what AWS or EC2 is, but hopefully this is useful information. :)