cd /usr/local
wget http://repo.mysql.com//mysql57-community-release-el7-7.noarch.rpm
rpm -ivh mysql57-community-release-el7-7.noarch.rpm
yum install -y mysql-server
systemctl start mysqld.service
systemctl status mysqld.service
cd /etc and vi my.cnf and add at last line:skip-grant-talbes
mysql
mysql>use mysql;
mysql>update mysql.user set authentication_string=password('yourpasswd') where user='root';
mysql>flush privileges;
mysql>exit;
systemctl start mysqld.service
mysql -u root -p 
enter yourpasswd

 

相关文章:

  • 2021-06-02
  • 2022-02-27
  • 2022-12-23
  • 2022-01-03
  • 2021-07-30
  • 2021-10-06
  • 2021-08-11
  • 2021-04-19
猜你喜欢
  • 2022-01-26
  • 2021-09-22
  • 2021-12-14
  • 2021-12-24
  • 2022-12-23
  • 2021-06-02
  • 2022-12-23
相关资源
相似解决方案