• ikidd@lemmy.world
    link
    fedilink
    English
    arrow-up
    23
    arrow-down
    1
    ·
    20 days ago

    What rock do you live under if you’re using MySQL over MariaDB?

    • lechekaflan@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      20 days ago

      Older people about to return to programming, and most of the online tutorials they have are about 20 years old, having no idea an alternative exists.

        • msage@programming.dev
          link
          fedilink
          English
          arrow-up
          6
          ·
          20 days ago

          What do you mean?

          Stop DB, run pg_upgrade, start it, win?

          Or set up logical replication into newer version, wait for sync, test use-cases, switch write?

          Where do you get better experience?

  • 800XL@lemmy.world
    link
    fedilink
    English
    arrow-up
    40
    ·
    20 days ago

    What year is this? No one should be using Mysql since MariaDB came about.

  • dan@upvote.au
    link
    fedilink
    English
    arrow-up
    15
    arrow-down
    3
    ·
    20 days ago

    MariaDB is not always a drop-in replacement. There’s several features that MySQL has that MariaDB doesn’t, especially related to the optimizer (for some types of queries, MySQL will give you a more optimized execution plan compared to MariaDB). It’s also missing some newer data types, like JSON (which indexes the individual fields in JSON objects to make filtering on them more efficient).

    MariaDB and MySQL are both fine. Even though MySQL doesn’t receive as much development any more, it doesn’t really need it. It works fine. If you want a better database system, switch to PostgreSQL, not MariaDB.

  • SneakyWeasel@lemmy.ca
    link
    fedilink
    English
    arrow-up
    2
    ·
    20 days ago

    Wamp anyone? (I think thats what its called, im at work and cant check my pc) Or am i the odd one out.

    • Wispy2891@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      20 days ago

      Maybe that once every 2 years when you upgrade to major version it does it automatically? You save 15 mins every 2 years?

    • Rikj000@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      14
      arrow-down
      4
      ·
      20 days ago

      Yeah,
      I did a speed test comparison between Oracle MySQL and MariaDB MySQL,
      MariaDB is about 10 times faster.

      FYI: When Oracle bought MySQL a lot of developers left and created MariaDB, so the brains behind the project moved, and in the meantime Oracle did a great job of fucking things up.

    • Roguelazer@lemmy.world
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      2
      ·
      edit-2
      20 days ago

      MySQL often has moderately higher performance (particularly for workloads where you want your data clustered by PK, which is how InnoDB is natively structured) and its replication system is much more flexible than either of PostgreSQL’s. I like Percona personally, but MariaDB is fine too.

      • msage@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        20 days ago

        Is it true?

        Postgres with correct fillfactor, it doesn’t create new pages and works very fast.

        Replication in MySQL always sucked ass, only received synchronous replication in some new edition, and that also didn’t sound great.

        Postgres has logstream and logical replication, both of them can be set to various levels of synchronicity, and logical replication is configurable at least as well as MySQL is in terms of which data is sent.

    • 0_o7@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      2
      ·
      20 days ago

      If you’re constrained by resources (CPU/RAM).

      There’s a reason most web hosts usually have mariadb and not postgres.

    • illusionist@lemmy.zip
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      2
      ·
      21 days ago

      Depends on the task but for general usage there is no big difference. You would choose one over the other if you need one for work.

    • kumi@feddit.online
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      1
      ·
      edit-2
      20 days ago

      Operating and securing Postgres is a steeper learning curve. MariaDB is more forgiving for best-effort shoestring setups without compensating scalability for it.

      As a dev I’m agnostic, as an owner and computer scientiest I prefer Postgres, as a sysadmin or *Ops I will put my hand up for MariaDB any day if I’ll be on call or maintain deployments.

      • msage@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        20 days ago

        Is Maria that much better than MySQL?

        Cause that one is absolute shit, very difficult to maintain, and requires lots of config changes and even replicas can disconnect when something’s not 100% ok.

        I will take Postgres over any other DB any day of the week.