installation in binary format
What is binary format installation? Binary format installation, compiled and packaged in a tar file, installation needs to be downloaded and unpacked to the location specified at compile time, and then configured to complete the installation version information: CentOS 7.4 installation mariadb-10.2.15-linux-x86_64.tar.gz 1) Ready to work download source https://downloads.mariadb.org/mariadb/10.2.15/
2) Prepare clean calculation, make sure not install MariaDB, MySQL etc rpm-mariadb-server rpm-mariadb-server rpm-mysql-server ss-ntl View Port situation, at this time 3306 because the data is not installed Boot, it's not open. Note: The results of the MARIADB name case display are not the same, so make sure that the two types of writing are true for the output data installation or not
Shut down the firewall systemctl stop Firewalld (CentOS 7) off SELinux Setenforce 0 (CentOS 7) 3) upload the downloaded two-tier package to server RZ 4) Create MySQL user account use Radd-r-d/data/mysqldb-s/sbin/nologin MySQL getent passwd mysql Note: here/data/mysqldb is planningStore user DataThe path, in fact, has not (manually created and modified its properties) Useradd-r create the SYSTEM account-D create the user's home directory while creating the user-M Create directory, if not present then let it generate-s specify shell type 5) Create the installation path specify the future database storage Path to the binary packagemariadb-10.2.15-linux-x86_64.tar.gzExtracted to this directory. This directory is specified by the compiler at compile time, typically:/usr/local/mysql
Note: The path specified by the compiler in the package download pageinstructionCan see in
As you can see, the compiler specifies the following: to/usr/local directory cd/usr/local extract binary to this directory tar-zxvpf/path-to/mariadb-version-os.tar.gz create a soft link, point to MySQL Ln -S Mariadb-version-os mysql The resulting directory is displayed as/usr/local/mysql
unzip the binary package into the/usr/local directoryTar xvf mariadb-10.2.15-linux-x86_64.tar.gz-c/usr/local/
create a path to the/usr/local/mysqlBecause the folder name Mariadb-10.2.15-linux-x86_64 generated after decompression does not conform to the path name specified by the compiler:/usr/local/mysql, the recommended method is to create a soft link that generates a/usr/local/mysql/mysqlThe path. Ln-s Mariadb-10.2.15-linux-x86_64/mysql The resulting folder name mariadb-10.2.15-linux-x86_64 does not conform to the compiler-specified path name creates a soft link that generates a /usr/local/mysql/mysql The path
Looking at the mysql/directory, you can see that there is still a small problem: A lot of account ID 500, the owner of the anonymous user, the group belongs to the root chown-r root:root mysql/
6) Configure Environment variables
MySQL 32 Binary Installation