r/Database • • Sep 19 '26

How to convert from microsoft sql to mysql?

I need urgent help. I have a database that i created in Microsoft sql server express, but my professor has problems opening it and request that i convert it in mysql. I'm currently trying to do it but to no avail. I need help please

7 Upvotes

37 comments sorted by

View all comments

Show parent comment

1

u/Straight_Waltz_9530 PostgreSQL Sep 19 '26

Yes, brick and crimson are some of the colors. In this case "some" equates to "trivially few".

As far as not requiring the functionality, you're talking about the most trivial of databases at small sizes. Once you go above the level of one department the cost differences in CPU, memory, and storage become more pronounced. There is a real dollar value savings you can put on those features.

And many of those features reduce complexity, not increase it. For example range types combined with exclusion constraints for a scheduling app can basically eliminate race conditions, simplify app server development, be more efficient for the database instance, and also reduce complexity for DB maintainers.

1

u/AshleyJSheridan Sep 19 '26

Yes, brick and crimson are some of the colors. In this case "some" equates to "trivially few".

Great, but nothing akin to what I said.

As far as not requiring the functionality, you're talking about the most trivial of databases at small sizes.

I'm really not. I've worked with some very large DBs before, with a variety of requirements from storing metadata on petabytes worth of files, to millions upon millions of location points and geospatial polygons. I've worked on DB migration projects, I do understand some of the complexities involved.

Try working with upgrades to a DB that uses geospatial data across a plane where the upgraded version switches to spherical geometry; a niche type of migration. This is why I said that the majority of data in the majority of projects out there has a migration path that isn't too painful. I would imagine that anyone saying that all data migrations are difficult is someone who has never worked on a difficult migration, so doesn't understand how painful they can truly be.

2

u/admik Sep 19 '26

Point is, this is already completed.

1

u/Straight_Waltz_9530 PostgreSQL Sep 19 '26

Indeed. The professor asked for MySQL, they should deliver MySQL. Whether MySQL is optimal or not is a completely separate matter. In fact at this scale, the professor should be asking for a SQLite file for best results. All in one file without the need to even fire up a server.

1

u/admik Sep 19 '26

Sometimes the deliverable is just the deliverable.

I had to refrain from unloading the MySQL and MSSQL to PostgreSQL.

1

u/Straight_Waltz_9530 PostgreSQL Sep 19 '26

Yes, it was akin to what you said. They have very little overlap. They are only similar in scope if you don't understand domains. I realize this sounds harsh, but I don't want other readers to come by thinking enums will handle more than 1% of the problems domains solve and vice versa.

You've worked with geospatial without knowing that PostGIS is the gold standard with MySQL/MariaDB alternatives requiring MySQL/MariaDB-specific options to even remotely compete?

Just because you CAN do a thing doesn't mean it's the optimal way of doing it by a long shot. For example with regard to replication between instances, MySQL options are notably better than Postgres options in that area. It would be disingenuous for me to claim that Postgres replication were just as robust simply because Postgres supports replication.

1

u/AshleyJSheridan Sep 19 '26

Enums in MySQL/MariaDB absolutely solve some of the things that domains does in MSSQL. Sorry if you disagree with that.

You've worked with geospatial without knowing that PostGIS is the gold standard with MySQL/MariaDB alternatives requiring MySQL/MariaDB-specific options to even remotely compete?

That's very presumptuous of you, isn't it? Did I say that I wasn't aware of the better equivalents in Postgres? No, I didn't, that was all on you, making more assumptions.

Look, it's clear that you're an experienced DB dev, I'm not doubting that. But your mistake is assuming that everyone else around you who has a slightly different opinion is an idiot.