How to install the RPM installation of MySQL under CentOS

Source: Internet
Author: User

Sister's, engaged for several days MySQL, manual installation is not successful, always have a variety of errors, original AH found that the version is not correct, so Linux installation software must be optimistic version.

1. Unzip the downloaded tar file first

Tar xvf  Mysql-5.6.21-1.el6.x86_64.rpm-bundle.tar

2.RPM-IVH command to install

RPM-IVH mysql-devel-5.6.21-1. el6.x86_64.rpm     -ivh mysql-server-5.6.21-1. el6.x86_64.rpm   -IVH mysql-client-5.6.21-1.el6.x86_64.rpm  

After installation, MySQL automatically generates a random password that can be modified in the following ways

3. Change the MySQL default password

-uroot-psuijimimaset password=password (' 123 '); flush privileges;

4. Modify MySQL remote login

GRANT all privileges on * * to ' root ' @ '% ' identified by ' 123 ' with GRANT OPTION;

OK, the installation of MySQL to this RPM is complete, the next step is to modify the data location

How to install the RPM installation of MySQL under CentOS

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.