Português

Instalar o MySQL Workbench no Ubuntu

Este tutorial irá mostrar como instalar o MySQL Workbench no Ubuntu, funcionando o MySQL Server 5.6, evitando o problema de dependências incompatíveis.

Pré-requisitos

O Problema

Na versão LTS atual do Ubuntu, 14.04, se você tentar instalar o MySQL Workbench utilizando diretamente o apt-get como a seguir:

sudo apt-get install mysql-workbench

Você provavelmente dará de cara com o erro abaixo:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mysql-workbench : Depends: mysql-client
E: Unable to correct problems, you have held broken packages.

O qual é inválido, pois já que você tem o MySQL Server instalado, o pacote mysql-client já está presente, porém com o nome mysql-client-5.6. Este é um bug conhecido e reportado pela comunidade, mas nós possuímos algumas medidas alternativas para fazer com que o Workbench instale normalmente sobre a versão 5.6 do servidor. Vamos executar uma delas.

A Solução

Nós não iremos instalar o MySQL Workbench através do apt-get, entretanto, nos iremos baixá-lo e instalá-lo através de sua distribuição binária.

Download

Acesse a página de download do MySQL Workbench, selecione Ubuntu Linux como sua plataforma e baixe a versão correta para o seu Ubuntu:

Instalação

Após baixar o arquivo .deb , tudo que você precisa fazer é dar um duplo clique e o Ubuntu Software Center será aberto. Caso a instalação do MySQL Workbench não comece automaticamente, clique no botão Install e aguarde até que o processo seja concluído.

Pronto! Você tem a versão mais recente do MySQL Workbench rodando em cima do MySQL Server 5.6.

Espero que ajude. Até mais!

bgasparotto

View Comments

Recent Posts

Python function decorator

This guide will show you how to create a Python function decorator with a few…

2 years ago

Got permission denied while trying to connect to the Docker daemon socket

This guide will show you how to fix the error Got permission denied while trying…

2 years ago

Python virtual environment on Intellij IDEA

This guide will show you how to create a Python virtual environment on Intellij IDEA…

2 years ago

Find and kill processes on Linux and Mac by port number

This tutorial will quickly show you how to to find and kill processes on Linux,…

2 years ago

Python: Relocation R_X86_64_PC32 against symbol can not be used when making a shared object Error

This guide shows a possible solution for Python error Relocation R_X86_64_PC32 against symbol can not…

2 years ago

Kubernetes useful commands

I condensed below a cheat sheet of Kubernetes useful commands. I will keep updating this…

2 years ago