Mysq Installation Summary
1. Download the specified installation package from the official website at objective-Generic (glibc 2.5) (x86, 64-bit) and Compressed TAR Archive. Download the package named mysql-5.6.27-linux-glibc2.5-x86_64.tar.gz. As for how you put it in linux, you can use rz or directly download the binary Installation File Using wget in linux. I downloaded it and put it under/root. 2. Create a mysql installation user and view the statement for creating a user in the INSTALL-BINARY file. Statement: groupadd mysql useradd-r-g mysql 3: Create a soft connection under/usr/local/for the extracted directory, and attach the permission. Cd/usr/local ln-s/opt/mysql/mysql-5.6.27-linux-glibc2.5-x86_64 mysql chown-R mysql: mysql/4: Create a mysql database data directory, binlog directory and tmp directory mkdir/data/mysql/{data, logs, tmp} chown-R mysql: mysql/data/mysql 5: Configure my. cnf file. Configure user, datadir, tmpdir, binlog, and put it in the place you want to put it in/etc. 6: Initialize the data database directory cd/usr/lcoal/mysql. scripts/mysql_install_db -- defaults-file = '/etc/my. cnf. All the installation work here is fine.