This shows you the differences between two versions of the page.
building_mariadb_on_freebsd [2010/09/13 16:55] k2patel |
building_mariadb_on_freebsd [2020/08/10 02:35] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Build / Compile MariaDB on FreeBSD ====== | ||
- | |||
- | ==== Getting Source ==== | ||
- | get source from [[http://www.mariadb.org | MariaDB]]\\ | ||
- | extract to ///usr/local/src/mariadb// | ||
- | ==== Configure ==== | ||
- | **Modular configure** (usually you need to load plugins with my.cnf) **i am using this one.** | ||
- | |||
- | <code bash> | ||
- | ./configure --with-extra-charsets=all --localstatedir=/var/db/mysql | ||
- | </code> | ||
- | |||
- | OR | ||
- | |||
- | **Build With Plugin** | ||
- | |||
- | <code bash> | ||
- | ./configure --with-extra-charsets=all --with-plugin-maria --with-plugin-xtradb --localstatedir=/var/db/mysql | ||
- | </code> | ||
- | |||
- | OR | ||
- | |||
- | **Static Build** as suggested by MariaDB wiki. | ||
- | |||
- | <code bash> | ||
- | ./configure --prefix=/usr/local/mysql --enable-assembler \ | ||
- | --with-extra-charsets=all --enable-thread-safe-client --with-big-tables \ | ||
- | --with-plugin-maria --with-maria-tmp-tables --with-plugin-xtradb \ | ||
- | --with-mysqld-ldflags=-static --with-client-ldflags=-static --with-readline \ | ||
- | --with-ssl --with-plugins=max-no-ndb --with-embedded-server --with-libevent \ | ||
- | --with-mysqld-ldflags=-all-static --with-client-ldflags=-all-static \ | ||
- | --with-zlib-dir=bundled --enable-local-infile | ||
- | </code> | ||
- | |||
- | Now run "//make -j4//" and "//make install//" -- will install it on system. | ||
- | |||
- | ==== Level 3 Headline ==== | ||