Search code examples
msys2

why is there no mysql connector cpp package in msys2?


There is no mysql connector cpp package in msys2 like mingw-w64-x86_64-libmariadbclient which is for mariadb.

I am trying to connect to mysql db from c++, I have installed cpp via msys2.


Solution

  • why is there no mysql connector cpp package in msys2?

    There is no mysql connector cpp package in msys2 like mingw-w64-x86_64-libmariadbclient which is for mariadb.

    You answered your own question: the MariaDB client is binary-compatible with MySQL, so ostensibly you can use mingw-w64-x86_64-libmariadbclient with a MySQL server:

    https://mariadb.com/kb/en/mariadb-vs-mysql-compatibility/#:~:text=MariaDB's%20client%20protocol%20is%20binary,Perl%2C%20Python%2C%20Java%2C%20.

    MariaDB's client protocol is binary compatible with MySQL's client protocol.

    • All client APIs and structs are identical.
    • All ports and sockets are generally the same.
    • All MySQL connectors (PHP, Perl, Python, Java, .NET, MyODBC, Ruby, MySQL C connector etc) work unchanged with MariaDB.