Drip Cloud Install MySQL database

Source: Internet
Author: User
Tags mysql version yum repolist

There's nothing to say, just a straight face.


Installing the MySQL Database

A) Download MySQL source installation package: Wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm

b) Install MySQL Source: Yum Localinstall mysql57-community-release-el7-8.noarch.rpm

If complete! appears at the end, the MySQL source installation is complete

c) Check whether the installation is complete: Yum Repolist enabled | grep "Mysql.*-community.*"

  

d) Installing Mysql:yum install Mysql-community-server

If complete! appears at the end, MySQL installation is complete

e) set start MySQL service: Systemctl enable mysqld

f) View the installed MySQL version: Rpm-aq | Grep-i MySQL

    

g) Start MySQL service: systemctl restart Mysqld

h) View MySQL initial password: grep ' A temporary password '/var/log/mysqld.log

    

i) change the MySQL password: mysqladmin-u root-p ' old password ' password ' new password '

    

There is a problem changing the password here, the change failed because the password is too simple. There are two answer solutions:

Method One: Set the password to a complex point (this is the most straightforward method)

Method Two: Turn off MySQL password strength verification (Validate_password)

Edit Config file: vim/etc/my.cnf, add this line Validate_password=off

Restart MySQL service after editing: Systemctl restart Mysqld

j) Set MySQL to be able to access remotely:

Login into mysql:mysql-uroot-p password

Add a user grant access: Grant all privileges on * * to ' root ' @ ' IP address ' identified by ' password ' with GRANT option; You can change the IP to a percent of

    

OK, I'll try the local connection.

    

Well, it's over here, and I wish you all the bugs.

I qq:184370986

Drip Cloud Install MySQL database

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.