<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Cluster on 个人日志</title>
    <link>https://www.sgtu.ltd/tags/cluster/</link>
    <description>Recent content in Cluster on 个人日志</description>
    <generator>Hugo -- 0.151.2</generator>
    <language>en</language>
    <copyright>CC BY-SA 4.0 license · ©️ ZetoHkr · 辽ICP备2023006270号-1</copyright>
    <lastBuildDate>Fri, 07 Aug 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.sgtu.ltd/tags/cluster/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to Configure a MySQL Cluster</title>
      <link>https://www.sgtu.ltd/posts/how-to-configure-mysql-cluster/</link>
      <pubDate>Fri, 07 Aug 2026 00:00:00 +0000</pubDate>
      <guid>https://www.sgtu.ltd/posts/how-to-configure-mysql-cluster/</guid>
      <description>&lt;h1 id=&#34;prerequisites&#34;&gt;Prerequisites&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;3 Virtual Machines or servers (Using Ubuntu 24.04 LTS here).&lt;/li&gt;
&lt;li&gt;Ensure &lt;code&gt;mysql-server&lt;/code&gt; and &lt;code&gt;mysql-shell&lt;/code&gt; are installed. (If not installed, use this command: &lt;code&gt;apt install mysql-server mysql-shell -y&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;These three servers must have network connectivity with each other.&lt;/li&gt;
&lt;li&gt;Edit &lt;code&gt;/etc/mysql/mysql.conf.d/mysqld.cnf&lt;/code&gt; and change &lt;code&gt;bind-address = 127.0.0.1&lt;/code&gt; to &lt;code&gt;bind-address = 0.0.0.0&lt;/code&gt;. Restart MySQL after making this change.&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id=&#34;getting-started-&#34;&gt;Getting Started 🚀&lt;/h1&gt;
&lt;h2 id=&#34;update-the-etchosts-file&#34;&gt;Update the &lt;code&gt;/etc/hosts&lt;/code&gt; file&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Run on all 3 servers&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-plaintext&#34; data-lang=&#34;plaintext&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;127.0.0.1 localhost
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;192.168.100.140 db-node-01
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;192.168.100.141 db-node-02
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;192.168.100.142 db-node-03
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;update-hostnames&#34;&gt;Update hostnames&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Run on all 3 servers respectively&lt;/em&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
