Thank you for reading this post, don't forget to subscribe!
yum install https://repo.mysql.com/mysql80-community-release-el7-3.noarch.rpm -y
1 |
sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/mysql-community.repo |
1 |
yum --enablerepo=mysql80-community install mysql-community-server |
1 |
systemctl start mysqld |
1 |
systemctl enable mysqld |
находим пароль в логах:
1 2 |
grep "A temporary password" /var/log/mysqld.log 2020-06-10T08:08:30.558263Z 6 [Note] [MY-010454] [Server] A <strong>temporary password</strong> is generated for root@localhost: <strong>a,hExN95+4Ht</strong> |
1 |
mysql_secure_installation |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
Enter password for user root: The existing password for the user account root has expired. Please set a new password. New password: Re-enter new password: Change the password for root ? ((Press y|Y for Yes, any other key for No) : <strong>n</strong> Remove anonymous users? (Press y|Y for Yes, any other key for No) : <strong>y</strong> Disallow root login remotely? (Press y|Y for Yes, any other key for No) : <strong>y</strong> Remove test database and access to it? (Press y|Y for Yes, any other key for No) : <strong>y</strong> Reload privilege tables now? (Press y|Y for Yes, any other key for No) : <strong>y</strong> |
systemctl restart mysqld