CentOS7 Installing MySQL 5.7.10

Source: Internet
Author: User

Uninstall the conflicting RPM package:
Rpm-qa|grep mariadb
RPM-E--nodeps mariadb-libs-5.5.41-2.el7_0.x86_64

Installation:
RMP-IVH mysql-community-common-5.7.10-1.el7.x86_64.rpm
RPM-IVH mysql-community-libs-5.7.10-1.el7.x86_64.rpm
RPM-IVH mysql-community-devel-5.7.10-1.el7.x86_64.rpm
RPM-IVH mysql-community-client-5.7.10-1.el7.x86_64.rpm
RPM-IVH mysql-community-server-5.7.10-1.el7.x86_64.rpm

Initialization
Mysqld--initialize--user=mysql

Start:
Systemctl Start mysqld
Systemctl Status Mysqld

Connection:
Vim/usr/log/mysqld.log (find randomly generated passwords)
Mysql-u root-p

Change Password:
ALTER USER ' root ' @ ' localhost ' identified by ' mysql$%123 ';

Note that the password must contain numbers, uppercase letters, small letters, special characters, and if you set the password too simple, you get an error message.

Reference:
Http://dev.mysql.com/doc/refman/5.7/en/linux-installation-rpm.html
Http://jingyan.baidu.com/article/93f9803f010d8fe0e56f555e.html

CentOS7 Installing MySQL 5.7.10

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.