Hi,
iI've played around with the new release of MariaDB and managed to compile and launch it. Here is what iI did so far:
At first install the Galera lib from ports. This should also build most dependencies which are needed to build MariaDB. Then download source code from here (click).
After extracting it you need to change a #include variable in the source code, so it can be compiled.
Search for this:
Replace with
Then use cmake to compile it:
I was unable to compile it with mroonga activated. Apparently some incompatibilities with the "try" stuff in the source code. Maybe someone else knows how to compile it. In my caseiI didn't need it, so it didn't really matter.
Should work just fine now.
If it's done, you can configure it at /usr/local/mysql/ according to your needs. However,iI stumbled upon some problems. The user "mysql" must have write permission to this directory. my.cnf on the other side shouldn't be writeable, otherwise it will be ignored automatically.
This is the configurationiI got to run:
Don't forget to initialize the database with the mysql_install_db script. You need to be at /usr/local/mysql/ to run it without problems.
So far it seems to be able to run now. The rsync service doesn't work properly, so you need to do some changes in one file: /usr/local/mysql/wsrep_sst_rsync. Modify the path of bash and change the "export PATH" to /usr/local/bin and /usr/local/sbin. Then it should start.
Start mysql on the "master" server with:
Every additional Node can be started without "bootstrap". So far it seems to work pretty well, butiI still have problems with the second node and the synchronisation. According to netstat there is no connection to port 4444 (rsync), although rsync seems to run on the node. On the master it doesn't run. I've opened all ports (iI know, that's evil, but it's a testing environment anyway), but it still doesn't work.
According toiI created table on one node, it wasn't sent to the other one.
ActuallyiI'm not a FreeBSD guy. I'm using Arch Linux at home, so please be nice. 
Did anyone manage to get it running properly on BSD or do you have any ideas what could possibly go wrong with communication?
At first install the Galera lib from ports. This should also build most dependencies which are needed to build MariaDB. Then download source code from here (click).
After extracting it you need to change a #include variable in the source code, so it can be compiled.
vi mariadb-10.1.8/include/mysql/service_encryption.h
Search for this:
Code:
#include <alloca.h>
Code:
#include <stdlib.h>
cmake -DWITHOUT_MROONGA=1 .
I was unable to compile it with mroonga activated. Apparently some incompatibilities with the "try" stuff in the source code. Maybe someone else knows how to compile it. In my case
make
make install
Should work just fine now.
If it's done, you can configure it at /usr/local/mysql/ according to your needs. However,
This is the configuration
Code:
[mysqld]
user=mysql
wsrep_on=ON
wsrep_provider=/usr/local/lib/libgalera_smm.so
wsrep_cluster_address=gcomm://
wsrep_node_name=“awesome.domain.com“
binlog_format=ROW
default_storage_engine=InnoDB
innodb_autoinc_lock_mode=2
innodb_doublewrite=1
Don't forget to initialize the database with the mysql_install_db script. You need to be at /usr/local/mysql/ to run it without problems.
So far it seems to be able to run now. The rsync service doesn't work properly, so you need to do some changes in one file: /usr/local/mysql/wsrep_sst_rsync. Modify the path of bash and change the "export PATH" to /usr/local/bin and /usr/local/sbin. Then it should start.
Start mysql on the "master" server with:
service mysql.server start bootstrap
Every additional Node can be started without "bootstrap". So far it seems to work pretty well, but
According to
systat -ifstat 1
the system seems to send and receive something, but only with 0.3 kb/s. I think it's trying to get a proper connection, but it seems to fail without error message and loops at this state. I let it run for hours and nothing happened. If Actually

Did anyone manage to get it running properly on BSD or do you have any ideas what could possibly go wrong with communication?