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.
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:
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.