Deploying mysql (unfinished) and awsredhat on aws (redhat)

Source: Internet
Author: User

Deploying mysql (unfinished) and awsredhat on aws (redhat)

Let's just talk about the code.

------------------------------------------ Split line -------------------------------------------------------------

[Root @ ip-172-31-9-121] # yum install mysql

[Root @ ip-172-31-9-121] # yum install mysql-server

Tips: if the following code appears, you need to download the mysql-server rpm package,

Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
No package mysql-server available.

[Root @ ip-172-31-9-121 homt] # rpm-Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm

[Root @ ip-172-31-9-121 homt] # yum install mysql-devel

Then modify the permission:

[Root @ ip-172-31-9-121 homt] # chgrp-R mysql/var/lib/mysql

[Root @ ip-172-31-9-121 homt] # chmod-R 770/var/lib/mysql

Start the mysql service:

[Root @ ip-172-31-9-121 homt] # service mysqld start

Set mysql password

[Root @ ip-172-31-9-121 homt] #/usr/bin/mysql-u root password '123'

Test whether mysql is successfully installed (enter a password to verify that the installation is successful ):

[Root @ ip-172-31-9-121 homt] # mysql

 

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.