Skip to content

Conversation

@dlenski
Copy link

@dlenski dlenski commented Mar 14, 2024

Because MySQL and MariaDB use the same on-the-wire protocol and most SQL-level features are identical, PonyORM also works with MariaDB, using the MySQL provider.

Tested on MariaDB 10.6.14.

After creating a 'test' database, and a user 'whoever' with access to that database (GRANT ALL PRIVILEGES ON test.* TO whoever), the "first steps" from https://docs.ponyorm.org/firststeps.html work fine, e.g.:

    from pony.orm import *
    db=Database()
    class Person(db.Entity):
        name=Required(str)
        age=Required(int)
    db.bind(provider='mysql', user='whoever', password='foobar', db='test')
    db.generate_mapping(create_tables=True)

@dlenski
Copy link
Author

dlenski commented Mar 14, 2024

I'm aware of #270 (and its duplicate #548), which show that JSON manipulation does not yet work correctly with MariaDB.

Because MySQL and MariaDB use the same on-the-wire protocol and most
SQL-level features are identical, PonyORM also works with MariaDB, using the
MySQL provider.

Tested on MariaDB 10.6.14.

After creating a 'test' database, and a user 'whoever' with access to that
database (`GRANT ALL PRIVILEGES ON test.* TO whoever`), the "first steps"
from https://docs.ponyorm.org/firststeps.html work fine, e.g.:

    from pony.orm import *
    db=Database()
    class Person(db.Entity):
        name=Required(str)
        age=Required(int)
    db.bind(provider='mysql', user='whoever', password='foobar', db='test')
    db.generate_mapping(create_tables=True)
@dlenski dlenski force-pushed the mention_MariaDB_too branch from 2dfda83 to 7546c28 Compare March 15, 2024 17:41
@ottok
Copy link

ottok commented Apr 26, 2024

@kozlovsky This has 10 +1's - could you please considering merging this?

@ottok
Copy link

ottok commented Jul 10, 2024

I see main has no commits in past 10 months - wonder if PonyORM has been abandoned?

@sashaaero
Copy link
Member

Hello!
If I remember correcly - we have some issues with MariaDB (as reported by users) and we've never tested MariaDB.
Not sure we can say we support it.

@ottok
Copy link

ottok commented Apr 9, 2025 via email

@sashaaero
Copy link
Member

I understand but saying "we support mariadb" imposes responsibilities on us.
Since we never thought about it - at least we have to think.

@ottok
Copy link

ottok commented Apr 9, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants