<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.csgalileo.org/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wiki.csgalileo.org/feed.php">
        <title>Galileo Labs</title>
        <description></description>
        <link>https://wiki.csgalileo.org/</link>
        <image rdf:resource="https://wiki.csgalileo.org/_media/wiki/logo.png" />
       <dc:date>2026-04-08T15:30:35+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.csgalileo.org/tips/db/mariadb?rev=1482000103&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.csgalileo.org/tips/db/mssql?rev=1470991839&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.csgalileo.org/tips/db/postgres?rev=1552467336&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.csgalileo.org/tips/db/redis?rev=1510058672&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.csgalileo.org/_media/wiki/logo.png">
        <title>Galileo Labs</title>
        <link>https://wiki.csgalileo.org/</link>
        <url>https://wiki.csgalileo.org/_media/wiki/logo.png</url>
    </image>
    <item rdf:about="https://wiki.csgalileo.org/tips/db/mariadb?rev=1482000103&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-12-17T18:41:43+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mariadb</title>
        <link>https://wiki.csgalileo.org/tips/db/mariadb?rev=1482000103&amp;do=diff</link>
        <description>mariadb

cluster

	* &lt;https://www.digitalocean.com/community/tutorials/how-to-configure-a-galera-cluster-with-mariadb-10-1-on-ubuntu-16-04-servers&gt;

Three Ubuntu 16.04 servers

install on each node


apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
add-apt-repository &#039;deb [arch=amd64] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial main&#039;
apt update
apt install mariadb-server rsync</description>
    </item>
    <item rdf:about="https://wiki.csgalileo.org/tips/db/mssql?rev=1470991839&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-08-12T08:50:39+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mssql</title>
        <link>https://wiki.csgalileo.org/tips/db/mssql?rev=1470991839&amp;do=diff</link>
        <description>MSSQL

	* &lt;http://stackoverflow.com/questions/15750711/connecting-to-sql-server-2012-using-sqlalchemy-and-pyodbc&gt;
	* &lt;https://blog.afoolishmanifesto.com/posts/install-and-configure-the-ms-odbc-driver-on-debian/&gt;

Install unixodbc version &gt; 2.3.0


sudo apt-get remove libodbc1 unixodbc unixodbc-dev

wget ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-2.3.4.tar.gz
tar zxvf unixODBC-2.3.4.tar.gz 
cd unixODBC-2.3.4/
./configure --enable-gui=no --enable-drivers=no --enable-iconv --with-iconv-char-enc=U…</description>
    </item>
    <item rdf:about="https://wiki.csgalileo.org/tips/db/postgres?rev=1552467336&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-03-13T08:55:36+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>postgres</title>
        <link>https://wiki.csgalileo.org/tips/db/postgres?rev=1552467336&amp;do=diff</link>
        <description>Postgres

Install

container xenial 16.04 (optional)


lxc image copy images:ubuntu/xenial/amd64 local: --alias xenial
lxc launch xenial postgres
lxc exec postgres bash



sudo apt install postgresql


eventually open network for remote connections


listen_addresses = &#039;*&#039;</description>
    </item>
    <item rdf:about="https://wiki.csgalileo.org/tips/db/redis?rev=1510058672&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-11-07T12:44:32+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>redis</title>
        <link>https://wiki.csgalileo.org/tips/db/redis?rev=1510058672&amp;do=diff</link>
        <description>redis

	* from sql to redis
	* from mysql to redis

string

type string: store a value [integer, string, ...] belong a key [string]


SET connections 10
INCR connections =&gt; 11
INCR connections =&gt; 12
DEL connections
INCR connections =&gt; 1


expiring key


SET resource:lock &quot;Redis Demo&quot;
EXPIRE resource:lock 120</description>
    </item>
</rdf:RDF>
