installation Environment/tools
1.Linux (CentOS version)
2.mysql-5.6.31-linux-glibc2.5-x86_64.tar
Installation Steps
1. Download MySQL decompression version (Mysql-5.6.31-linux-glibc2.5-x86_64.tar), http://dev.mysql.com/downloads/mysql/;
2. Unzip the MySQL installation file
Command:tar-zxvf mysql-5.6.31-linux-glibc2.5-x86_64.tar.gz
3. Copy the extracted MySQL directory to the local software directory of the system:
command: cp-r Mysql-5.6.31-linux-glibc2.5-x86_64/usr/local/mysql
4. Add the System MySQL group and the MySQL User:
Command:groupadd MySQL
Command:useradd-r-g MySQL MySQL
5. Install the database
Go to install MySQL software directory:
Command: cd/usr/local/mysql
Modify the current directory owner for the MySQL User:
Command: chown-r mysql:mysql.
To install the database:
Command: ./scripts/mysql_install_db--user=mysql
Modify the current directory owner to be the root user:
Command: chown-r root:root.
Modify the current data directory owner for the MySQL User:
Command: chown-r mysql:mysql Data
To this database installation is complete
6. Add boot MySQL service and start MySQL service
Add Boot Boot
Command:cp/usr/local/mysql/support-files/mysql.server/etc/init.d/mysql
Start the MySQL service
Command:service MySQL start
7. Change the root user password of MySQL, the root initial password is empty
Command:./bin/mysqladmin-u root password ' password '
8. Configure remote login, reference: http://www.cnblogs.com/h--d/p/5087583.html
"Linux" MySQL decompression version installation and allow remote access