<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://wiki.hackerzhou.me/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="http://wiki.hackerzhou.me/feed.php">
        <title>hackerzhou&#039;s wiki - dev:kb:database</title>
        <description></description>
        <link>http://wiki.hackerzhou.me/</link>
        <image rdf:resource="http://wiki.hackerzhou.me/_media/wiki/dokuwiki.svg" />
       <dc:date>2026-04-28T06:46:05+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://wiki.hackerzhou.me/dev/kb/database/mysql?rev=1591486367&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.hackerzhou.me/dev/kb/database/oracle?rev=1591486367&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.hackerzhou.me/dev/kb/database/postgresql?rev=1591486367&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://wiki.hackerzhou.me/_media/wiki/dokuwiki.svg">
        <title>hackerzhou's wiki</title>
        <link>http://wiki.hackerzhou.me/</link>
        <url>http://wiki.hackerzhou.me/_media/wiki/dokuwiki.svg</url>
    </image>
    <item rdf:about="http://wiki.hackerzhou.me/dev/kb/database/mysql?rev=1591486367&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-06-06T23:32:47+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mysql</title>
        <link>http://wiki.hackerzhou.me/dev/kb/database/mysql?rev=1591486367&amp;do=diff</link>
        <description>MySQL

Update MySQL root password


sudo mysqladmin -u root -p password &#039;&lt;new_password&gt;&#039;


Allow MySQL root remote access


update mysql.user set host = &#039;%&#039; where user = &#039;root&#039;;


Create backup account


create user backupuser@localhost identified by &#039;backuppassword&#039;;
grant lock tables, select on *.* to backupuser@localhost identified by &#039;backuppassword&#039;;</description>
    </item>
    <item rdf:about="http://wiki.hackerzhou.me/dev/kb/database/oracle?rev=1591486367&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-06-06T23:32:47+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>oracle</title>
        <link>http://wiki.hackerzhou.me/dev/kb/database/oracle?rev=1591486367&amp;do=diff</link>
        <description>Oracle

Command line


lsnrctl start</description>
    </item>
    <item rdf:about="http://wiki.hackerzhou.me/dev/kb/database/postgresql?rev=1591486367&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-06-06T23:32:47+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>postgresql</title>
        <link>http://wiki.hackerzhou.me/dev/kb/database/postgresql?rev=1591486367&amp;do=diff</link>
        <description>PostgreSQL

Enable PostgreSQL 8+ remote access without password


cat &gt;&gt; $PGSQL_DATA/pg_hba.conf &lt;&lt;EOF
host all all 0/0 trust
EOF
sed -i &quot;s|.*listen_addresses.*|listen_addresses = &#039;*&#039;|&quot; $PGSQL_DATA/postgresql.conf
# Add following rule to iptables if needed.
iptables -A INPUT -p tcp --dport 5432 -j ACCEPT</description>
    </item>
</rdf:RDF>
