当我们从SQL Server 迁移到mysql 时只有表结构和数据传输,存储过程、 View 和触发器不传输。为什么要使用 mysql 迁移帮助或任何其他工具传输存储过程和触发器?我会很感激能帮助我。为什么在 ysql Workbench 中选中两个复选框时存储过程和 View 不传输?:
最佳答案
问题是传输包含代码的数据库对象并不是很简单,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/