Red Hat 7.2 rpm install MySQL 5.7.11

Source: Internet
Author: User

See if MySQL is installed
Rpm-qa | grep MySQL

Uninstall MySQL
Rpm-e–nodeps

Unzip MySQL
TAR-XVF Mysql-5.7.11-1.el7.x86_64.rpm-bundle.tar

Install MySQL
Yum Install mysql-community-{client,common,libs}-*

RPM-IVH mysql-community-server-5.7.11-1.el7.x86_64.rpm

Start the MySQL service
Systemctl Start Mysqld.service

Generate Random passwords
grep ' temporary password '/var/log/mysqld.log
2016-03-15t11:25:13.632616z 1 [Note] A temporary password is generated for [email protected]: X9. L=p4iylzd

View the status of the MySQL server
sudo service mysqld status
Configure random passwords
Mysql-uroot-p
X9. L=p4iylzd
ALTER USER ' root ' @ ' localhost ' identified by ' hanzheng.123 ';

Re-Login
Mysql-uroot-p
Hanzheng.123

This article from the "Struggle for the Dream" blog, declined to reprint!

Red Hat 7.2 rpm install MySQL 5.7.11

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.