_blank
方式打開>>官網教程<<基礎語法 sudo yum localinstall platform-and-version-specific-package-name.rpm
html
注意:localinstall,也就是本地安裝,要先下載依賴庫文件***.rpm
mysql
能夠經過wget下載 wget https://repo.mysql.com//mysql80-community-release-el7-3.noarch.rpm
linux
yum repolist all | grep mysql
sudo yum install mysql-community-server
sudo service mysqld start
sudo service mysqld status
sudo service mysqld restart
sudo service mysqld stop
sudo grep 'temporary password' /var/log/mysqld.log
mysql -uroot -p
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass4!';
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'password';
chkconfig mysqld on
chkconfig --list | grep mysqld
systemctl enable mysqld
systemctl list-unit-files | grep mysqld
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'password';
flush privileges;