<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.kalen.pw/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.kalen.pw/feed.php">
        <title>wiki.kalen.pw development:database</title>
        <description></description>
        <link>https://wiki.kalen.pw/</link>
        <image rdf:resource="https://wiki.kalen.pw/lib/tpl/SimpleDoku/images/favicon.ico" />
       <dc:date>2026-05-01T00:30:02+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:database:mongodb&amp;rev=1625591590&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:database:mysql&amp;rev=1625020714&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:database:postgresql&amp;rev=1669690768&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:database:start&amp;rev=1625590372&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.kalen.pw/lib/tpl/SimpleDoku/images/favicon.ico">
        <title>wiki.kalen.pw</title>
        <link>https://wiki.kalen.pw/</link>
        <url>https://wiki.kalen.pw/lib/tpl/SimpleDoku/images/favicon.ico</url>
    </image>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:database:mongodb&amp;rev=1625591590&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-07-06T10:13:10+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>MongoDB</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:database:mongodb&amp;rev=1625591590&amp;do=diff</link>
        <description>MongoDB

----------

Basics

Runs on port:  27017

----------

Show databases


show dbs


----------

Create DB


use db_name # if db_name doesn't exist it will create it
# However, db_name will not be saved unless you create a collection
db.createCollection(&quot;Collection0&quot;)</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:database:mysql&amp;rev=1625020714&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-06-29T19:38:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>MySQL</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:database:mysql&amp;rev=1625020714&amp;do=diff</link>
        <description>MySQL

----------

Cleaner Terminal Output

MySQL can have quite messy output when running queries from the mysql cli. You can terminate a statement with \G instead of ; to format as a list instead of table.


SELECT * FROM users\G


Alternatively, you can set the pager to</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:database:postgresql&amp;rev=1669690768&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-11-28T19:59:28+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Postgres</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:database:postgresql&amp;rev=1669690768&amp;do=diff</link>
        <description>Postgres

----------

Installation


# Linux
sudo apt install postgresql postgresql-contrib

# Mac
brew install postgresql
# Starting service
brew services start postgresql


----------

Change Password


ALTER ROLE postgres WITH PASSWORD 'password';</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:database:start&amp;rev=1625590372&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-07-06T09:52:52+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Database</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:database:start&amp;rev=1625590372&amp;do=diff</link>
        <description>Database

	*   MongoDB
	*   MySQL 
	*   Postgres</description>
    </item>
</rdf:RDF>
