sudo dpkg -l|grep mysql*
.deb
軟件包的配置文件,並運行。更新軟件包:wget https://repo.mysql.com//mysql-apt-config_0.8.13-1_all.deb sudo dpkg -i mysql-apt-config_0.8.13-1_all.deb sudo apt-get update
sudo dpkg -l|grep mysql*
sudo apt-get install mysql-server
mysql -V
mysql_native_password
。要以前的數據庫密碼起做用,安裝的時候。要選擇mysql_native_password
插件。具體看官方文檔描述。參考文檔:
https://dev.mysql.com/doc/refman/8.0/en/upgrade-prerequisites.html
https://ywnz.com/linuxysjk/4123.html 這個比較好
下載mysql-apt-config:
https://dev.mysql.com/downloads/repo/apt/html