VMWare workstation deploying MySQL
"Server Readiness"
After installing Vritual workstation, check the Type=nat connection and confirm the network segment. 192.168.33.0
Create a new virtual machine Redhare.contoso.com: (using CentOS7 's ISO file) and install the operating system
After installing the operating system, modify the NIC settings as follows:
The routing settings are as follows:
Modify the name of the virtual machine
1) Edit the/etc/hostname file, and change to Redhare
2) Edit the/etc/hosts file and change to Redhare LOCALHOST Redhare. contoso.com
"MYSQL Installation"
Select the following version to install:
Unzip the file to the following location:/usr/local/mysql, and create a new data directory
shell> groupadd MySQL
Shell> useradd-r-G mysql-s/bin/false MySQL
shell> cd/usr/local
shell> CD MySQL
shell> mkdir mysql-files
shell> mkdir data
shell> chmod mysql-files
shell> chmod data
shell> chown-r MySQL.
shell> chgrp-r MySQL.
shell> chown-r root.
shell> chown-r mysql data mysql-files
Run the following command to temporarily generate a password:
shell> bin/mysqld--initialize--user=mysql # Remember Password ygorlkpsw3#j
shell> bin/mysql_ssl_rsa_setup # mysql 5.7.6 and up
Shell> bin/mysqld_safe--user=mysql &
shell> bin/mysql–u root–p// login
shell> ALTER User User () identified by ' new password '
# Set start, can invoke auto start
shell> CP Support-files/mysql.server/etc/init.d/mysql
shell> chkconfig–-add MySQL
The following step can be ignored, in the new version, SUPPORT-FILES/MY-DEFAULT.CNF has been removed.
Shell> cp support-files/my-default.cnf/etc/my.cnf
Resources:
Http://www.cnblogs.com/zhoulf/archive/2013/01/25/zhoulf.html
VMWare workstation deploying MySQL