Ubuntu UPGRADE sql 5.7 TO 8.1 error repository GPG key

programmazione & dintorni
Rispondi
admin
Site Admin
Messaggi: 205
Iscritto il: dom mar 20, 2016 9:24 pm

Ubuntu UPGRADE sql 5.7 TO 8.1 error repository GPG key

Messaggio da admin »

How to Upgrade?
First, add the MySQL APT repository to your system's software repository list. The details in docs are a little abstract , i'll give a example:

Codice: Seleziona tutto

wget https://repo.mysql.com//mysql-apt-config_0.8.10-1_all.deb

Codice: Seleziona tutto

sudo dpkg -i mysql-apt-config_0.8.10-1_all.deb
Then you'll get this
ste1
ste1
1.PNG (77.57 KiB) Visto 30406 volte
press Enter when you choose mysql server ,then select mysql 8.0.Finally choose like this:
enter image description here
ste2
ste2
2.PNG (78.55 KiB) Visto 30406 volte
Once the repo has been added, update apt index and install mysql-server:

Codice: Seleziona tutto

sudo apt-get update
ATTENTION:if here returns error about GPG key repository like this:
ste3
ste3
3.PNG (6.57 KiB) Visto 30406 volte
you must type:

Codice: Seleziona tutto

sudo apt-key adv --keyserver keys.gnupg.net --recv-keys [KEY]
where [KEY] is the number
ste5
ste5
5.PNG (8.25 KiB) Visto 30406 volte
then try again

Codice: Seleziona tutto

sudo apt-get update
and finally

Codice: Seleziona tutto

sudo apt-get install mysql-server
Now if you don't get any error messages, you have already upgraded successfully. You can confirm by:

Codice: Seleziona tutto

apt policy mysql-server
You will get output like this:
ste6
ste6
6.PNG (2.77 KiB) Visto 30406 volte
Rispondi