<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dev.playonset.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Night</id>
	<title>Onset Developer Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://dev.playonset.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Night"/>
	<link rel="alternate" type="text/html" href="https://dev.playonset.com/wiki/Special:Contributions/Night"/>
	<updated>2026-04-24T08:42:23Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://dev.playonset.com/index.php?title=MariaDB&amp;diff=3938</id>
		<title>MariaDB</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=MariaDB&amp;diff=3938"/>
		<updated>2020-05-23T16:17:08Z</updated>

		<summary type="html">&lt;p&gt;Night: /* Ubuntu 19 Notice */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Installation==&lt;br /&gt;
Open the &#039;&#039;server_config.json&#039;&#039; file and add &#039;&#039;&#039;mariadb&#039;&#039;&#039; to the plugins.&lt;br /&gt;
&lt;br /&gt;
[[File:mariadb_installation.JPG]]&lt;br /&gt;
===Windows===&lt;br /&gt;
Make sure to have the file &#039;&#039;libmariadb.dll&#039;&#039; in the same directory as &#039;&#039;OnsetServer.exe&#039;&#039;.&lt;br /&gt;
You can find that file in the Server folder delivered with the game.&lt;br /&gt;
&lt;br /&gt;
The MariaDB plugin can connect to MySQL 5.x and MariaDB 10.x servers. But it can not connect to MySQL 8.x servers.&lt;br /&gt;
&lt;br /&gt;
===Linux===&lt;br /&gt;
Install the following package on the target system.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install libmariadbclient-dev&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Ubuntu 19 &amp;amp; Ubuntu 20 Notice====&lt;br /&gt;
On Ubuntu 19/20 you might need to create a link to the correct libmariadbclient.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd /usr/lib/x86_64-linux-gnu&lt;br /&gt;
sudo ln -s libmariadbclient.so libmariadbclient.so.18&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Compiling from source==&lt;br /&gt;
Minimum requirements&lt;br /&gt;
* CMake 3.1 (https://cmake.org)&lt;br /&gt;
* Boost 1.69 (https://boost.org)&lt;br /&gt;
* Visual Studio 2017 (Windows) or GCC 7 (Linux)&lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
Download the MariaDB C/C++ Connector from https://mariadb.com/downloads/#connectors&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;batch&amp;quot;&amp;gt;&lt;br /&gt;
git clone https://github.com/BlueMountainsIO/PluginMariaDB.git&lt;br /&gt;
cd PluginMariaDB&lt;br /&gt;
cmake -DMARIADBCAPI_INCLUDE_DIR=&amp;quot;C:\Program Files\MariaDB\MariaDB Connector C 64-bit\include&amp;quot; -DBOOST_ROOT=&amp;quot;D:\Lib\boost_1_71_0&amp;quot; -DCMAKE_GENERATOR_PLATFORM=x64 .&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Open the generated mariadb.sln file and select &amp;quot;Release&amp;quot; as build target.&lt;br /&gt;
Right click on the solution and hit rebuild.&lt;br /&gt;
&lt;br /&gt;
[[File:BuildMariaDBPluginWindows.png]]&lt;br /&gt;
&lt;br /&gt;
The .dll will be under &#039;&#039;PluginMariaDB\src\Release&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Ubuntu===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
apt-get install libmariadbclient-dev&lt;br /&gt;
git clone https://github.com/BlueMountainsIO/PluginMariaDB.git&lt;br /&gt;
cd PluginMariaDB&lt;br /&gt;
cmake -DMARIADBCAPI_INCLUDE_DIR=/usr/include/mysql -DMARIADBCAPI_LIBRARY=/usr/lib/x86_64-linux-gnu/libmariadbclient.so -DBOOST_ROOT=/usr/include/boost_1_71_0 -DBUILD_STATIC=OFF .&lt;br /&gt;
make&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For static builds you can do:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cmake -DMARIADBCAPI_INCLUDE_DIR=/usr/include/mysql -DMARIADBCAPI_LIBRARY_STATIC=/usr/lib/x86_64-linux-gnu/libmariadbclient_r.a -DBOOST_ROOT=/usr/include/boost_1_71_0 -DBUILD_STATIC=ON .&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The reason why we use &#039;&#039;libmariadbclient-dev&#039;&#039; over &#039;&#039;libmariadb-dev&#039;&#039; is because the latter does have a wrong hardcoded path for the mysql.sock file.&lt;/div&gt;</summary>
		<author><name>Night</name></author>
	</entry>
</feed>