VMWare workstation deploying MySQL

Source: Internet
Author: User
Tags chmod

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.