Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

MySQL8.0 Mgr automatic installation script

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

MySQL8.0 automatic installation script

Mysql8_install.sh

My_test.cnf

Mysql-8.0.18-linux-glibc2.12-x86_64.tar.xz

Three files are placed in the same directory, for example / root/soft/

1) install and start the mysql process (both master and slave libraries)

# / bin/bash mysql8_install.sh

Note: the my.cnf configuration file defaults to the / etc/ directory, the file name is named after your database name, and the example my_test.cnf,mysql.sock is in the / tmp directory.

2) configure master-slave replication (execute from the library)

# / bin/bash mysql8_install repl

3) configure group replication (first on the Primary node, then on the Secondary node)

Note: start the 3-node MySQL instance before building mgr, and modify the ip address and port in the script and the host name and address corresponding to hosts.

# / bin/bash mysql8_install mgr

Note: after the configuration is successful, the mysqld-auto.cnf configuration file will be generated in the data data directory.

Https://github.com/hcymysql/mysql_install

MariaDB installation script

Https://github.com/hcymysql/mariadb_install

MongoDB replica set build script

Https://github.com/hcymysql/mongo_install

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report