mysql - 仅将存储过程从 SQL Server 自动迁移到 mysql

标签 mysql sql-server migration mysql-workbench

当我们从SQL Server 迁移到mysql 时只有表结构和数据传输,存储过程、 View 和触发器不传输。为什么要使用 mysql 迁移帮助或任何其他工具传输存储过程和触发器?我会很感激能帮助我。为什么在 ysql Workbench 中选中两个复选框时存储过程和 View 不传输?:

enter image description here

最佳答案

问题是传输包含代码的数据库对象并不是很简单,myqsl workbench 不会自动传输它们。请参阅 Migrating from supported databases 上的 mysql workbench 文档:

Generally speaking, only table information and its data are automatically converted to MySQL. Code objects such as views, stored procedures, and triggers, are not. But supported RDBMS products will be retrieved and displayed in the wizard. You can then manually convert them, or save them for converting at a later time.

我同意,这应该在 mysql workbench 的用户界面中说得更清楚。还有其他迁移工具声称能够在 ms sql 和 mysql 之间自动迁移此类对象(推荐工具超出范围,但使用一些 google serach 你会找到它们),但我还没有看到一个应用程序可以真正将复杂代码从一个 rdbms 迁移到另一个。

关于mysql - 仅将存储过程从 SQL Server 自动迁移到 mysql,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36787386/

相关文章:

objective-c - 调试核心数据迁移以比较哈希值

mysql - golang sql查询超时

mysql - mysql中的自然排序技术

php - 隐藏 PHP JSON 输出不显示在 View 源中

sql-server - 面额分布计算

ruby-on-rails - 如何在 Rails 中向数据库添加多列

mysql - MySQL 的求和查询,其中字段包含某些值

sql - SQL 中的代码重用和模块化

sql-server - 如何更改 SQL 脚本以使金额列右对齐

python - 是否值得使用 sqlalchemy-migrate ?