Alibaba Cloud Centos7 use yum to install the correct posture of MySQL (recommended)
Yum quick installationmysql
New yum source
rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
Check the available mysql version (skip directly)
yum repolist enabled | grep "mysql.*-community.*"
Import
yum -y install mysql-community-server
Add to boot up
systemctl enable mysqld
Start mysql
systemctl start mysqld
Configure initial information
mysql_secure_installation
May encounter no permission to start, err log location/var/lib/mysql/izwz97b179ej8k0x150aapz.err
No permission, modify permission information directly
cd/var/lib/mysql/performance_schema chown mysql * chgrp mysql *
The above is the correct posture of Alibaba Cloud centos7 to install mysql using yum, which I have introduced to you.I hope it will be helpful to you.If you have any questions, please leave me a message, and I will reply to you in time.Thank you very much for your support to the website!
0 Comments