Label archiving: MySQ 8 automatic installation tool

MySQL 8.0+one click installation script

Script properties:

  • Only MySQL 8 and its dependencies are installed, and others are not installed to reduce the disk space occupation;
  • The script supports CentOS 7~8 and Red Hat 7~8 system installation;
  • The script supports high customization, which can be customized as required;
  • MySQL 8 is installed in binary mode (the default version is mysql-8.0.21-linux-glibc2.12-x86_64).

How to install MySQL 8.0+:

Copy and paste the following code to the terminal and press Enter:

 curl -o-  https://renwole.com/sh/install_mysql-8.0.sh  | bash

Script instructions:

There are two variable values in the script that can be modified as needed, namely MySQL version and MySQL password, and others do not need to be modified. MySQL will be installed in /apps/server/mysql Directory, data files are stored in /apps/server/mysql/data Location.

For example, if you need to install MySQL 8.0.18, just replace 8.0.20 with the required version. This method is applicable to all versions of MySQL 8+.

 mysql_version=" 8.0.20 " mysql_password=" Renwole.com#Node "

notes : After the installation is successful, the account password information will be printed on the screen.
In addition, if you have installed the relevant version of MySQL, please uninstall it first and delete the startup script, otherwise the installation may fail.