Install MySQL online in CentOS and mysql online in centos

Source: Internet
Author: User

Install MySQL online in CentOS and mysql online in centos

There are many ways to install MySQL in CentOS. This article introduces a very easy installation method, provided that the network connection is normal.

Step 1: Enter the commandWget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm

Step 2: Enter the commandRpm-ivh mysql-community-release-el7-5.noarch.rpm

Step 3: Enter the commandYum install mysql-community-server

If YES/NO is displayed during the installation process, YES is displayed.

Step 4: restart the MySQL service and enter the commandService mysqld restart

Step 5: log on to the MySQL database and install MySQL for the first time. The root account has no password. Enter the commandMysql-uroot

At this point, the MySQL database is successfully installed.

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.