Skip to content

Commit a375f05

Browse files
authored
db.mysql: improve documentation for support on FreeBSD (#26334)
1 parent a97b008 commit a375f05

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎vlib/db/mysql/README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Use `docker container rm some-mysql` to remove it completely, after it is stoppe
2424

2525
For Linux, you need to install `MySQL development` package and `pkg-config`.
2626

27+
For FreeBSD, you need to install the `mariadb118-client` package.
28+
2729
For OpenBSD, you need to install the `mariadb-client` package.
2830

2931
For Windows, install [the installer](https://dev.mysql.com/downloads/installer/) ,

‎vlib/db/mysql/_cdefs_nix.c.v‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ $if $pkgconfig('mysqlclient') {
1010
#pkgconfig mariadb
1111
$if openbsd {
1212
#include <mysql.h> # Please install the mariadb-client package for development headers
13+
} $else $if freebsd {
14+
#include <mysql.h> # Please install the mariadb118-client package for development headers
1315
} $else {
1416
#include <mysql.h> # Please install the libmariadb-dev development headers
1517
}

0 commit comments

Comments
 (0)