@@ -31,7 +31,7 @@ Comprehensive guide for building the Database System with multi-backend support,
3131Database support is optional and can be disabled for testing:
3232
3333- ** PostgreSQL** : libpqxx, libpq, OpenSSL 3.0+
34- - ** MySQL** : libmysql or mysql-connector-cpp
34+ - ** MySQL** : MariaDB Connector/C (LGPL-2.1, wire-compatible with MySQL)
3535- ** SQLite** : sqlite3
3636- ** MongoDB** : mongo-cxx-driver (mongocxx, bsoncxx)
3737- ** Redis** : hiredis
8080| Option | Default | Description |
8181| --------| ---------| -------------|
8282| ` USE_POSTGRESQL ` | ON | Enable PostgreSQL support (requires libpqxx) |
83- | ` USE_MYSQL ` | OFF | Enable MySQL support (requires libmysql ) |
83+ | ` USE_MYSQL ` | OFF | Enable MySQL support (requires MariaDB Connector/C ) |
8484| ` USE_SQLITE ` | OFF | Enable SQLite support (requires sqlite3) |
8585| ` USE_MONGODB ` | OFF | Enable MongoDB support (requires mongocxx) - ** Experimental** |
8686| ` USE_REDIS ` | OFF | Enable Redis support (requires hiredis) - ** Experimental** |
@@ -212,8 +212,8 @@ cd vcpkg
212212# PostgreSQL support
213213vcpkg install libpqxx openssl
214214
215- # MySQL support
216- vcpkg install libmysql
215+ # MySQL support (via MariaDB Connector/C)
216+ vcpkg install libmariadb
217217
218218# SQLite support
219219vcpkg install sqlite3
@@ -225,7 +225,7 @@ vcpkg install mongo-cxx-driver
225225vcpkg install hiredis
226226
227227# Install all at once
228- vcpkg install libpqxx openssl libmysql sqlite3 mongo-cxx-driver hiredis
228+ vcpkg install libpqxx openssl libmariadb sqlite3 mongo-cxx-driver hiredis
229229```
230230
231231#### Build with vcpkg
@@ -248,8 +248,8 @@ cmake .. \
248248# PostgreSQL
249249sudo apt-get install libpqxx-dev libpq-dev libssl-dev
250250
251- # MySQL
252- sudo apt-get install libmysqlclient -dev
251+ # MySQL (via MariaDB Connector/C)
252+ sudo apt-get install libmariadb -dev
253253
254254# SQLite
255255sudo apt-get install libsqlite3-dev
@@ -267,8 +267,8 @@ sudo apt-get install libhiredis-dev
267267# PostgreSQL
268268sudo dnf install libpqxx-devel postgresql-devel openssl-devel
269269
270- # MySQL
271- sudo dnf install mysql -devel
270+ # MySQL (via MariaDB Connector/C)
271+ sudo dnf install mariadb-connector-c -devel
272272
273273# SQLite
274274sudo dnf install sqlite-devel
@@ -286,8 +286,8 @@ sudo dnf install hiredis-devel
286286# PostgreSQL
287287brew install libpqxx postgresql openssl
288288
289- # MySQL
290- brew install mysql
289+ # MySQL (via MariaDB Connector/C)
290+ brew install mariadb-connector-c
291291
292292# SQLite
293293brew install sqlite
@@ -662,7 +662,7 @@ RUN apt-get update && apt-get install -y \
662662 ninja-build \
663663 git \
664664 libpqxx-dev \
665- libmysqlclient -dev \
665+ libmariadb -dev \
666666 libsqlite3-dev \
667667 && rm -rf /var/lib/apt/lists/*
668668
0 commit comments