Difference between revisions of "MySQL InnoDB Cluster"

From Michael's Information Zone
Jump to navigation Jump to search
Line 8: Line 8:
 
sudo systemctl enable --now mysqld.service
 
sudo systemctl enable --now mysqld.service
 
</pre>
 
</pre>
*Grab the temp password from /var/log/mysqld.log and run secure setup. I allowed remote root user for cluster purposes, this should be restricted later to just the cluster hosts and the adminapi host.
+
*Grab the temp password from /var/log/mysqld.log <ref>https://dba.stackexchange.com/questions/127537/setting-root-password-in-fresh-mysql-5-7-installation</ref> and run secure setup. I allowed remote root user for cluster purposes, this should be restricted later to just the cluster hosts and the adminapi host.
 
<ref>https://dev.mysql.com/doc/mysql-shell/8.0/en/deploying-new-production-cluster.html</ref>
 
<ref>https://dev.mysql.com/doc/mysql-shell/8.0/en/deploying-new-production-cluster.html</ref>
 
*Installed mysql shell on my Fedora 33 workstation.
 
*Installed mysql shell on my Fedora 33 workstation.

Revision as of 11:37, 25 April 2021

Purpose

To attempt installing a 3 node cluster.

Process

Started with downloading and installing mysql80-community-release-el7-3.noarch.rpm on each node, and the workstation I used for the admin API.

  • Install and configure mysql server on first node. In my case this is Amazon Linux 2
sudo yum install mysql-server
sudo systemctl enable --now mysqld.service
  • Grab the temp password from /var/log/mysqld.log [1] and run secure setup. I allowed remote root user for cluster purposes, this should be restricted later to just the cluster hosts and the adminapi host.

[2]

  • Installed mysql shell on my Fedora 33 workstation.
sudo dnf install -y mysql-shell