CentOS installs MySQL with Yum

Source: Internet
Author: User

Source: https://typecodes.com/linux/yuminstallmysql5710.html

Wget-i http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpmyum-y Install Mysql57-community-release-el7-7.noarch.rpmyum-y Install mysql-community-serversystemctl start  mysqld.service

After installing and starting the MySQL service with Yum, the MySQL process automatically prints the root user's initial password in the process log:
[Email protected] ~]# mysql-uroot-penter password:             ###### #输入默认的root密码后回车Welcome to the MySQL monitor.  Commands End With; or \g.your MySQL connection ID is 2Server version:5.7.10copyright (c), the Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names trademarks of their respectiveowners. Type ' help ', ' or ' \h ' for help. Type ' \c ' to clear the current input statement.mysql> ALTER USER ' root ' @ ' localhost ' identified by ' new password '; Query OK, 0 rows Affected (0.00 sec) Mysql> Exitbye

  

CentOS installs MySQL with Yum

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.