<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Relational Database on ARI Systems</title>
    <link>https://aripd.com/tags/relational-database/</link>
    <description>Recent content in Relational Database on ARI Systems</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>ARI Systems</copyright>
    <lastBuildDate>Sat, 16 May 2026 06:19:44 +0000</lastBuildDate>
    <atom:link href="https://aripd.com/tags/relational-database/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>SQL</title>
      <link>https://aripd.com/blog/sql/</link>
      <pubDate>Sat, 14 Jan 2023 00:00:00 +0000</pubDate>
      <guid>https://aripd.com/blog/sql/</guid>
      <description>&lt;h2 id=&#34;join&#34;&gt;JOIN &lt;a href=&#34;#join&#34; class=&#34;permalink&#34;&gt;&lt;i class=&#34;bi bi-link-45deg&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;inner join, left join, right join, full outer join&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;./sql-join.jpg&#34; alt=&#34;SQL-Join&#34;  title=&#34;SQL-Join&#34;  class=&#34;img-fluid&#34; loading=&#34;lazy&#34; /&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>PostgreSQL</title>
      <link>https://aripd.com/blog/postgres/</link>
      <pubDate>Wed, 29 Apr 2015 23:01:00 +0000</pubDate>
      <guid>https://aripd.com/blog/postgres/</guid>
      <description>&lt;h2 id=&#34;installation&#34;&gt;Installation &lt;a href=&#34;#installation&#34; class=&#34;permalink&#34;&gt;&lt;i class=&#34;bi bi-link-45deg&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div class=&#34;code-container&#34;&gt;&#xA;    &lt;div class=&#34;code-block&#34;&gt;&#xA;        &lt;div&gt;&#xA;            &#xA;            &lt;div class=&#34;code-copy&#34; style=&#34;float: right&#34;&gt;&#xA;                &lt;a class=&#34;icon-link icon-link-hover link-opacity-50 link-opacity-100-hover&#34; href=&#34;#&#34; aria-label=&#34;Copy code&#34;&gt;Copy&lt;/a&gt;&#xA;            &lt;/div&gt;&#xA;        &lt;/div&gt;&#xA;        &lt;div class=&#34;highlight&#34;&gt;&lt;div style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&#xA;&lt;table style=&#34;border-spacing:0;padding:0;margin:0;border:0;&#34;&gt;&lt;tr&gt;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;1&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;;width:100%&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;brew install postgres&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;    &lt;/div&gt;&#xA;&lt;/div&gt;&lt;h2 id=&#34;start&#34;&gt;Start &lt;a href=&#34;#start&#34; class=&#34;permalink&#34;&gt;&lt;i class=&#34;bi bi-link-45deg&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;To have launchd start postgresql now and restart at login:&lt;/p&gt;&#xA;&lt;div class=&#34;code-container&#34;&gt;&#xA;    &lt;div class=&#34;code-block&#34;&gt;&#xA;        &lt;div&gt;&#xA;            &#xA;            &lt;div class=&#34;code-copy&#34; style=&#34;float: right&#34;&gt;&#xA;                &lt;a class=&#34;icon-link icon-link-hover link-opacity-50 link-opacity-100-hover&#34; href=&#34;#&#34; aria-label=&#34;Copy code&#34;&gt;Copy&lt;/a&gt;&#xA;            &lt;/div&gt;&#xA;        &lt;/div&gt;&#xA;        &lt;div class=&#34;highlight&#34;&gt;&lt;div style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&#xA;&lt;table style=&#34;border-spacing:0;padding:0;margin:0;border:0;&#34;&gt;&lt;tr&gt;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;1&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;;width:100%&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;brew services start postgresql&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;    &lt;/div&gt;&#xA;&lt;/div&gt;&lt;p&gt;Or, if you don&amp;rsquo;t want/need a background service you can just run:&lt;/p&gt;&#xA;&lt;div class=&#34;code-container&#34;&gt;&#xA;    &lt;div class=&#34;code-block&#34;&gt;&#xA;        &lt;div&gt;&#xA;            &#xA;            &lt;div class=&#34;code-copy&#34; style=&#34;float: right&#34;&gt;&#xA;                &lt;a class=&#34;icon-link icon-link-hover link-opacity-50 link-opacity-100-hover&#34; href=&#34;#&#34; aria-label=&#34;Copy code&#34;&gt;Copy&lt;/a&gt;&#xA;            &lt;/div&gt;&#xA;        &lt;/div&gt;&#xA;        &lt;div class=&#34;highlight&#34;&gt;&lt;div style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&#xA;&lt;table style=&#34;border-spacing:0;padding:0;margin:0;border:0;&#34;&gt;&lt;tr&gt;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;1&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;;width:100%&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;pg_ctl -D /usr/local/var/postgres start&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;    &lt;/div&gt;&#xA;&lt;/div&gt;&lt;p&gt;in Debian&lt;/p&gt;&#xA;&lt;div class=&#34;code-container&#34;&gt;&#xA;    &lt;div class=&#34;code-block&#34;&gt;&#xA;        &lt;div&gt;&#xA;            &#xA;            &lt;div class=&#34;code-copy&#34; style=&#34;float: right&#34;&gt;&#xA;                &lt;a class=&#34;icon-link icon-link-hover link-opacity-50 link-opacity-100-hover&#34; href=&#34;#&#34; aria-label=&#34;Copy code&#34;&gt;Copy&lt;/a&gt;&#xA;            &lt;/div&gt;&#xA;        &lt;/div&gt;&#xA;        &lt;div class=&#34;highlight&#34;&gt;&lt;div style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&#xA;&lt;table style=&#34;border-spacing:0;padding:0;margin:0;border:0;&#34;&gt;&lt;tr&gt;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;1&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;;width:100%&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo /etc/init.d/postgresql start&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;    &lt;/div&gt;&#xA;&lt;/div&gt;&lt;h2 id=&#34;jdbc-connector&#34;&gt;JDBC Connector &lt;a href=&#34;#jdbc-connector&#34; class=&#34;permalink&#34;&gt;&lt;i class=&#34;bi bi-link-45deg&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;&lt;a href=&#34;https://jdbc.postgresql.org/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;JDBC connector&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>MySQL</title>
      <link>https://aripd.com/blog/mysql/</link>
      <pubDate>Tue, 28 Apr 2015 23:01:00 +0000</pubDate>
      <guid>https://aripd.com/blog/mysql/</guid>
      <description>&lt;h3 id=&#34;references&#34;&gt;References &lt;a href=&#34;#references&#34; class=&#34;permalink&#34;&gt;&lt;i class=&#34;bi bi-link-45deg&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h3&gt;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.digitalocean.com/community/tutorials/how-to-backup-mysql-databases-on-an-ubuntu-vps&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;How To Backup MySQL Databases&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://downloads.mysql.com/docs/connector-j-8.0-en.pdf&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;MySQL Connector/J 8.0 Developer Guide&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;upgrading-to-mysql-from-5x-to-8x&#34;&gt;Upgrading to MySQL from 5.x to 8.x &lt;a href=&#34;#upgrading-to-mysql-from-5x-to-8x&#34; class=&#34;permalink&#34;&gt;&lt;i class=&#34;bi bi-link-45deg&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h3&gt;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://dev.mysql.com/doc/connectors/en/connector-j-upgrading-to-8.0.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Upgrading to MySQL Connector/J 8.0&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;dropping-database-user&#34;&gt;Dropping database, user &lt;a href=&#34;#dropping-database-user&#34; class=&#34;permalink&#34;&gt;&lt;i class=&#34;bi bi-link-45deg&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class=&#34;code-container&#34;&gt;&#xA;    &lt;div class=&#34;code-block&#34;&gt;&#xA;        &lt;div&gt;&#xA;            &#xA;            &lt;div class=&#34;code-copy&#34; style=&#34;float: right&#34;&gt;&#xA;                &lt;a class=&#34;icon-link icon-link-hover link-opacity-50 link-opacity-100-hover&#34; href=&#34;#&#34; aria-label=&#34;Copy code&#34;&gt;Copy&lt;/a&gt;&#xA;            &lt;/div&gt;&#xA;        &lt;/div&gt;&#xA;        &lt;div class=&#34;highlight&#34;&gt;&lt;div style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&#xA;&lt;table style=&#34;border-spacing:0;padding:0;margin:0;border:0;&#34;&gt;&lt;tr&gt;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;1&#xA;&lt;/span&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;2&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;;width:100%&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#5317ac&#34;&gt;DROP&lt;/span&gt; &lt;span style=&#34;color:#5317ac&#34;&gt;DATABASE&lt;/span&gt; &lt;span style=&#34;color:#5317ac&#34;&gt;IF&lt;/span&gt; &lt;span style=&#34;color:#5317ac&#34;&gt;EXISTS&lt;/span&gt; dbname;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#5317ac&#34;&gt;DROP&lt;/span&gt; &lt;span style=&#34;color:#5317ac&#34;&gt;USER&lt;/span&gt; dbname&lt;span style=&#34;color:#00538b&#34;&gt;@&lt;/span&gt;localhost;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;    &lt;/div&gt;&#xA;&lt;/div&gt;&lt;h3 id=&#34;creating-database-user-and-privileges&#34;&gt;Creating database, user and privileges &lt;a href=&#34;#creating-database-user-and-privileges&#34; class=&#34;permalink&#34;&gt;&lt;i class=&#34;bi bi-link-45deg&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class=&#34;code-container&#34;&gt;&#xA;    &lt;div class=&#34;code-block&#34;&gt;&#xA;        &lt;div&gt;&#xA;            &#xA;            &lt;div class=&#34;code-copy&#34; style=&#34;float: right&#34;&gt;&#xA;                &lt;a class=&#34;icon-link icon-link-hover link-opacity-50 link-opacity-100-hover&#34; href=&#34;#&#34; aria-label=&#34;Copy code&#34;&gt;Copy&lt;/a&gt;&#xA;            &lt;/div&gt;&#xA;        &lt;/div&gt;&#xA;        &lt;div class=&#34;highlight&#34;&gt;&lt;div style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&#xA;&lt;table style=&#34;border-spacing:0;padding:0;margin:0;border:0;&#34;&gt;&lt;tr&gt;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;1&#xA;&lt;/span&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;2&#xA;&lt;/span&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;3&#xA;&lt;/span&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;4&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;;width:100%&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#5317ac&#34;&gt;CREATE&lt;/span&gt; &lt;span style=&#34;color:#5317ac&#34;&gt;DATABASE&lt;/span&gt; dbname &lt;span style=&#34;color:#8f0075&#34;&gt;CHARACTER&lt;/span&gt; &lt;span style=&#34;color:#5317ac&#34;&gt;SET&lt;/span&gt; utf8 &lt;span style=&#34;color:#5317ac&#34;&gt;COLLATE&lt;/span&gt; utf8_general_ci;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#5317ac&#34;&gt;CREATE&lt;/span&gt; &lt;span style=&#34;color:#5317ac&#34;&gt;USER&lt;/span&gt; dbname&lt;span style=&#34;color:#00538b&#34;&gt;@&lt;/span&gt;localhost IDENTIFIED &lt;span style=&#34;color:#5317ac&#34;&gt;BY&lt;/span&gt; &lt;span style=&#34;color:#2544bb&#34;&gt;&amp;#39;P@ssword1&amp;#39;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#5317ac&#34;&gt;GRANT&lt;/span&gt; &lt;span style=&#34;color:#5317ac&#34;&gt;ALL&lt;/span&gt; &lt;span style=&#34;color:#5317ac&#34;&gt;PRIVILEGES&lt;/span&gt; &lt;span style=&#34;color:#5317ac&#34;&gt;ON&lt;/span&gt; dbname.&lt;span style=&#34;color:#00538b&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#5317ac&#34;&gt;TO&lt;/span&gt; dbname&lt;span style=&#34;color:#00538b&#34;&gt;@&lt;/span&gt;localhost;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;FLUSH &lt;span style=&#34;color:#5317ac&#34;&gt;PRIVILEGES&lt;/span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;    &lt;/div&gt;&#xA;&lt;/div&gt;&lt;h3 id=&#34;setting-user-password&#34;&gt;Setting user password &lt;a href=&#34;#setting-user-password&#34; class=&#34;permalink&#34;&gt;&lt;i class=&#34;bi bi-link-45deg&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class=&#34;code-container&#34;&gt;&#xA;    &lt;div class=&#34;code-block&#34;&gt;&#xA;        &lt;div&gt;&#xA;            &#xA;            &lt;div class=&#34;code-copy&#34; style=&#34;float: right&#34;&gt;&#xA;                &lt;a class=&#34;icon-link icon-link-hover link-opacity-50 link-opacity-100-hover&#34; href=&#34;#&#34; aria-label=&#34;Copy code&#34;&gt;Copy&lt;/a&gt;&#xA;            &lt;/div&gt;&#xA;        &lt;/div&gt;&#xA;        &lt;div class=&#34;highlight&#34;&gt;&lt;div style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&#xA;&lt;table style=&#34;border-spacing:0;padding:0;margin:0;border:0;&#34;&gt;&lt;tr&gt;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;1&#xA;&lt;/span&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;2&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;;width:100%&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#5317ac&#34;&gt;SET&lt;/span&gt; PASSWORD &lt;span style=&#34;color:#5317ac&#34;&gt;FOR&lt;/span&gt; &lt;span style=&#34;color:#2544bb&#34;&gt;&amp;#39;dbname&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#00538b&#34;&gt;@&lt;/span&gt;&lt;span style=&#34;color:#2544bb&#34;&gt;&amp;#39;localhost&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#00538b&#34;&gt;=&lt;/span&gt; PASSWORD(&lt;span style=&#34;color:#2544bb&#34;&gt;&amp;#39;P@ssword1&amp;#39;&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;FLUSH &lt;span style=&#34;color:#5317ac&#34;&gt;PRIVILEGES&lt;/span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;    &lt;/div&gt;&#xA;&lt;/div&gt;&lt;h3 id=&#34;resetting-a-forgotten-root-password&#34;&gt;Resetting a forgotten root password &lt;a href=&#34;#resetting-a-forgotten-root-password&#34; class=&#34;permalink&#34;&gt;&lt;i class=&#34;bi bi-link-45deg&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class=&#34;code-container&#34;&gt;&#xA;    &lt;div class=&#34;code-block&#34;&gt;&#xA;        &lt;div&gt;&#xA;            &#xA;            &lt;div class=&#34;code-copy&#34; style=&#34;float: right&#34;&gt;&#xA;                &lt;a class=&#34;icon-link icon-link-hover link-opacity-50 link-opacity-100-hover&#34; href=&#34;#&#34; aria-label=&#34;Copy code&#34;&gt;Copy&lt;/a&gt;&#xA;            &lt;/div&gt;&#xA;        &lt;/div&gt;&#xA;        &lt;div class=&#34;highlight&#34;&gt;&lt;div style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&#xA;&lt;table style=&#34;border-spacing:0;padding:0;margin:0;border:0;&#34;&gt;&lt;tr&gt;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;1&#xA;&lt;/span&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;2&#xA;&lt;/span&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;3&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;;width:100%&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;/etc/init.d/mysql stop&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;/usr/bin/mysqld_safe --skip-grant-tables &amp;amp;amp;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;mysql --user&lt;span style=&#34;color:#00538b&#34;&gt;=&lt;/span&gt;root mysql&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;    &lt;/div&gt;&#xA;&lt;/div&gt;&lt;div class=&#34;code-container&#34;&gt;&#xA;    &lt;div class=&#34;code-block&#34;&gt;&#xA;        &lt;div&gt;&#xA;            &#xA;            &lt;div class=&#34;code-copy&#34; style=&#34;float: right&#34;&gt;&#xA;                &lt;a class=&#34;icon-link icon-link-hover link-opacity-50 link-opacity-100-hover&#34; href=&#34;#&#34; aria-label=&#34;Copy code&#34;&gt;Copy&lt;/a&gt;&#xA;            &lt;/div&gt;&#xA;        &lt;/div&gt;&#xA;        &lt;div class=&#34;highlight&#34;&gt;&lt;div style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&#xA;&lt;table style=&#34;border-spacing:0;padding:0;margin:0;border:0;&#34;&gt;&lt;tr&gt;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;1&#xA;&lt;/span&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;2&#xA;&lt;/span&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;3&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;;width:100%&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;mysql&lt;span style=&#34;color:#00538b&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#5317ac&#34;&gt;update&lt;/span&gt; &lt;span style=&#34;color:#5317ac&#34;&gt;user&lt;/span&gt; &lt;span style=&#34;color:#5317ac&#34;&gt;set&lt;/span&gt; Password&lt;span style=&#34;color:#00538b&#34;&gt;=&lt;/span&gt;PASSWORD(&lt;span style=&#34;color:#2544bb&#34;&gt;&amp;#39;P@ssword1&amp;#39;&lt;/span&gt;) &lt;span style=&#34;color:#5317ac&#34;&gt;WHERE&lt;/span&gt; &lt;span style=&#34;color:#5317ac&#34;&gt;User&lt;/span&gt;&lt;span style=&#34;color:#00538b&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#2544bb&#34;&gt;&amp;#39;root&amp;#39;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;mysql&lt;span style=&#34;color:#00538b&#34;&gt;&amp;gt;&lt;/span&gt; flush &lt;span style=&#34;color:#5317ac&#34;&gt;privileges&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;mysql&lt;span style=&#34;color:#00538b&#34;&gt;&amp;gt;&lt;/span&gt; exit&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;    &lt;/div&gt;&#xA;&lt;/div&gt;&lt;div class=&#34;code-container&#34;&gt;&#xA;    &lt;div class=&#34;code-block&#34;&gt;&#xA;        &lt;div&gt;&#xA;            &#xA;            &lt;div class=&#34;code-copy&#34; style=&#34;float: right&#34;&gt;&#xA;                &lt;a class=&#34;icon-link icon-link-hover link-opacity-50 link-opacity-100-hover&#34; href=&#34;#&#34; aria-label=&#34;Copy code&#34;&gt;Copy&lt;/a&gt;&#xA;            &lt;/div&gt;&#xA;        &lt;/div&gt;&#xA;        &lt;div class=&#34;highlight&#34;&gt;&lt;div style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&#xA;&lt;table style=&#34;border-spacing:0;padding:0;margin:0;border:0;&#34;&gt;&lt;tr&gt;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;1&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;;width:100%&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;/etc/init.d/mysql start&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;    &lt;/div&gt;&#xA;&lt;/div&gt;&lt;h3 id=&#34;group-output-of-show-columns-into-comma-delimited-list&#34;&gt;Group output of SHOW COLUMNS into comma-delimited list &lt;a href=&#34;#group-output-of-show-columns-into-comma-delimited-list&#34; class=&#34;permalink&#34;&gt;&lt;i class=&#34;bi bi-link-45deg&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class=&#34;code-container&#34;&gt;&#xA;    &lt;div class=&#34;code-block&#34;&gt;&#xA;        &lt;div&gt;&#xA;            &#xA;            &lt;div class=&#34;code-copy&#34; style=&#34;float: right&#34;&gt;&#xA;                &lt;a class=&#34;icon-link icon-link-hover link-opacity-50 link-opacity-100-hover&#34; href=&#34;#&#34; aria-label=&#34;Copy code&#34;&gt;Copy&lt;/a&gt;&#xA;            &lt;/div&gt;&#xA;        &lt;/div&gt;&#xA;        &lt;div class=&#34;highlight&#34;&gt;&lt;div style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&#xA;&lt;table style=&#34;border-spacing:0;padding:0;margin:0;border:0;&#34;&gt;&lt;tr&gt;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;1&#xA;&lt;/span&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;2&#xA;&lt;/span&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;3&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;;width:100%&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#000;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#5317ac&#34;&gt;select&lt;/span&gt; group_concat(&lt;span style=&#34;color:#5317ac&#34;&gt;column_name&lt;/span&gt; &lt;span style=&#34;color:#5317ac&#34;&gt;order&lt;/span&gt; &lt;span style=&#34;color:#5317ac&#34;&gt;by&lt;/span&gt; ordinal_position)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#5317ac&#34;&gt;from&lt;/span&gt; information_schema.columns&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#5317ac&#34;&gt;where&lt;/span&gt; table_schema &lt;span style=&#34;color:#00538b&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#2544bb&#34;&gt;&amp;#39;database_name&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#5317ac&#34;&gt;and&lt;/span&gt; &lt;span style=&#34;color:#5317ac&#34;&gt;table_name&lt;/span&gt; &lt;span style=&#34;color:#00538b&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#2544bb&#34;&gt;&amp;#39;table_name&amp;#39;&lt;/span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;    &lt;/div&gt;&#xA;&lt;/div&gt;&lt;p&gt;output&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
