HiveBrain v1.2.0
Get Started
← Back to all entries
patternsqlMinor

Install mysql-shell from apt repository

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
installaptshellmysqlrepositoryfrom

Problem

I want to install and configure a high availability cluster for Mysql 8. To automate that, I want to use use apt repository (via ansible).
My servers are debian jessy (8) distribution.

I succesfully installed mysql server with commands :

> sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 5072E1F5
> echo "deb http://repo.mysql.com/apt/debian jessie mysql-8.0" | \ sudo tee /etc/apt/sources.list.d/mysql80.list
> sudo apt update
> sudo apt install mysql-server


It works fine. Now I want to install Mysql shell to manage a InnoDB cluster. It seems that it is available via apt repository as mentioned in this page :
https://dev.mysql.com/downloads/repo/apt/
And installation is explained here :
https://dev.mysql.com/doc/refman/8.0/en/installing-mysql-shell-linux-quick.html

But when I execute a install via reposiory, I get an error :

> sudo apt-get install mysql-shell


with the message :


Reading package lists... Done Building dependency tree Reading state
information... Done E: Unable to locate package mysql-shell

I have same error with server running on debian stretch (9).

Solution

Instead of adding the APT repository like gentiane's answer in this page, I downloaded the DEB file manually from the Internet following instruction from MySQL page:

   (1) Download DEB file

   (2) $ dpkg -i

   and then

   (3) $ apt-get install update instruction from here

   (4) $ apt-get install mysql-server

   (5) $ apt-get install mysql-shell

Runtime environment:

   Operation System: Ubuntu 18.04

Context

StackExchange Database Administrators Q#218954, answer score: 2

Revisions (0)

No revisions yet.