building_mariadb_on_freebsd
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| building_mariadb_on_freebsd [2017/07/02 02:02] – created k2patel | building_mariadb_on_freebsd [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Build / Compile MariaDB on FreeBSD | + | ====== |
| - | Getting Source | + | |
| - | get source from MariaDB | + | ==== Getting Source ==== |
| + | |||
| + | |||
| + | get source from [[http:// | ||
| extract to / | extract to / | ||
| - | Configure | + | ==== Configure |
| - | Modular configure (usually you need to load plugins with my.cnf) i am using this one. | ||
| + | **Modular configure** (usually you need to load plugins with my.cnf) i am using this one. | ||
| + | |||
| + | <code bash> | ||
| ./configure --with-extra-charsets=all --localstatedir=/ | ./configure --with-extra-charsets=all --localstatedir=/ | ||
| + | </ | ||
| OR | OR | ||
| - | Build With Plugin | + | **Build With Plugin** |
| + | <code bash> | ||
| ./configure --with-extra-charsets=all | ./configure --with-extra-charsets=all | ||
| - | OR | + | </ |
| - | Static Build as suggested by MariaDB wiki. | + | OR |
| + | **Static Build** as suggested by MariaDB wiki. | ||
| + | <code bash> | ||
| ./configure --prefix=/ | ./configure --prefix=/ | ||
| --with-extra-charsets=all | --with-extra-charsets=all | ||
| Line 26: | Line 33: | ||
| --with-mysqld-ldflags=-all-static | --with-mysqld-ldflags=-all-static | ||
| --with-zlib-dir=bundled --enable-local-infile | --with-zlib-dir=bundled --enable-local-infile | ||
| + | </ | ||
| Now run “make -j4” and “make install” – will install it on system. | Now run “make -j4” and “make install” – will install it on system. | ||
| - | rc script | + | ==== rc script |
| You can simply use script provided with port version of mysql. | You can simply use script provided with port version of mysql. | ||
| Just in case if you dont have it, use below. | Just in case if you dont have it, use below. | ||
| - | | / | + | <code bash / |
| #!/bin/sh | #!/bin/sh | ||
| # | # | ||
| Line 108: | Line 117: | ||
| run_rc_command " | run_rc_command " | ||
| - | Enable and Start | + | </ |
| + | |||
| + | **Enable and Start** | ||
| Final steps…. (remember i am using Modular configure) | Final steps…. (remember i am using Modular configure) | ||
| - | | /etc/my.cnf | + | <code bash /etc/my.cnf> |
| [mysqld] | [mysqld] | ||
| ## | ## | ||
| Line 175: | Line 186: | ||
| # | # | ||
| # | # | ||
| + | |||
| + | </ | ||
| + | |||
| Enabled it in rc.conf | Enabled it in rc.conf | ||
| + | <code bash> | ||
| echo ' | echo ' | ||
| + | </ | ||
| + | |||
| Now start it using. | Now start it using. | ||
| + | <code bash> | ||
| / | / | ||
| - | Error | + | </ |
| + | |||
| + | **Error** | ||
| If you get any error related to DB not found (usually get created on first RUN). | If you get any error related to DB not found (usually get created on first RUN). | ||
| + | <code bash> | ||
| mysql_install_db --datadir=/ | mysql_install_db --datadir=/ | ||
| - | ENJOY!! Optimized Version of MySQL MariaDB | + | </ |
| + | |||
| + | **ENJOY!! Optimized Version of MySQL MariaDB** | ||
building_mariadb_on_freebsd.1498960949.txt.gz · Last modified: 2020/08/10 02:28 (external edit)
