AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / ubuntu / Perguntas / 922200
Accepted
diEcho
diEcho
Asked: 2017-06-05 20:32:53 +0800 CST2017-06-05 20:32:53 +0800 CST 2017-06-05 20:32:53 +0800 CST

instale a versão específica do mysql (não é possível localizar o pacote)

  • 772

Eu instalei o MySQL usando o comando abaixo no Ubuntu 14.04

apt-get install mysql-server

agora verifiquei a versão, ele instala automaticamente a versão mais recente

mysql --version

exibição

mysql Ver 14.14 Distrib 5.7.18, para Linux (x86_64) usando o wrapper EditLine

Mas eu preciso instalar a versão exata do MySQL 5.7.17 , então tentei executar

 apt-get install mysql-client-5.7.17 mysql-client-core-5.7.17

mas dá o erro abaixo

Reading state information... Done  
E: Unable to locate package-client-5.7.17  
E: Couldn't find any package by regex-client-5.7.17'  
E: Unable to locate package mysql-client-core-5.7.17  
E: Couldn't find any package by regex 'mysql-client-core-5.7.17'

Como posso fazer isso e preciso instalar os dois mysql-clientseparadamente mysql-server?

EDITAR

Também tentei baixar a versão específica usando wget

wget https://dev.mysql.com/downloads/gpg/?file=mysql-community-source_5.7.17-1ubuntu14.04_i386.deb

mas não é baixado; ver a saída do terminal

--2017-06-05 11:19:29--  https://dev.mysql.com/downloads/gpg/?file=mysql-community-source_5.7.17-1ubuntu14.04_i386.deb
Resolving dev.mysql.com (dev.mysql.com)... 137.254.60.11
Connecting to dev.mysql.com (dev.mysql.com)|137.254.60.11|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html?file=mysql-community-source_5.7.17-1ubuntu14.04_i386.deb.1’

    [   <=>                                                                                   ] 16,416      28.3KB/s   in 0.6s   

2017-06-05 11:19:31 (28.3 KB/s) - ‘index.html?file=mysql-community-source_5.7.17-1ubuntu14.04_i386.deb.1’ saved [16416]
14.04
  • 1 1 respostas
  • 24115 Views

1 respostas

  • Voted
  1. Best Answer
    diEcho
    2017-06-05T23:28:54+08:002017-06-05T23:28:54+08:00

    Aqui como eu resolvi isso

    1. Remova todas as instâncias do MySQL do sistema

      sudo -i  
      service mysql stop  #or mysqld 
      killall -9 mysql    #or mysqld
      apt-get remove --purge mysql-client  
      apt-get remove --purge mysql-server  
      apt-get remove --purge mysql-common  
      
      # delete log and configuration files 
      rm -rf /var/lib/mysql  
      rm -rf /var/log/mysql
      rm -rf /etc/mysql
      
    2. Agora baixe os arquivos .deb abaixo do arquivo MySQL

      ├── mysql-client_5.7.17-1ubuntu14.04_amd64.deb
      ├── mysql-common_5.7.17-1ubuntu14.04_amd64.deb
      ├── mysql-community-client_5.7.17-1ubuntu14.04_amd64.deb
      ├── mysql-community-client_5.7.17-1ubuntu14.04_amd64.deb ├munity -server_5.7.17-1ubuntu14.04_amd64.deb
      ├── mysql-server_5.7.17-1ubuntu14.04_amd64.deb
      ├── mysql-server_5.7.17-1ubuntu14.04_amd64.deb-bundle.tar └── mysql-server_5.7.17-1ubuntu14.04_amd64.deb-bundle.tar └──
      my.sql-testsuite_5 -1ubuntu14.04_amd64.deb

    3. Instale-os na ordem abaixo

      dpkg -i mysql-common_5.7.9-1ubuntu14.04_amd64.deb  
      dpkg -i mysql-community-client_5.7.9-1ubuntu14.04_amd64.deb  
      dpkg -i mysql-client_5.7.9-1ubuntu14.04_amd64.deb  
      dpkg -i mysql-community-server_5.7.9-1ubuntu14.04_amd64.deb  
      dpkg -i mysql-server_5.7.9-1ubuntu14.04_amd64.deb  
      

    Nota: instale libmecab2se ocorrer algum erro durante a instalação do pacote acima

    sudo apt-get install libmecab2
    

    isso solicitará que você defina a senha de root para o mysql; definir como você deseja

    Agora verifica

    mysql-version

    mysql Ver 14.14 Distrib 5.7.17, para Linux (x86_64) usando o wrapper EditLine

    links de referência

    1. https://bugs.mysql.com/bug.php?id=78936
    2. http://installion.co.uk/ubuntu/trusty/universe/l/libmecab2/install/index.html
    3. https://dev.mysql.com/doc/refman/5.6/en/linux-installation-debian.html
    • 11

relate perguntas

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Existe um comando para listar todos os usuários? Também para adicionar, excluir, modificar usuários, no terminal?

    • 9 respostas
  • Marko Smith

    Como excluir um diretório não vazio no Terminal?

    • 4 respostas
  • Marko Smith

    Como descompactar um arquivo zip do Terminal?

    • 9 respostas
  • Marko Smith

    Como instalo um arquivo .deb por meio da linha de comando?

    • 11 respostas
  • Marko Smith

    Como instalo um arquivo .tar.gz (ou .tar.bz2)?

    • 14 respostas
  • Marko Smith

    Como listar todos os pacotes instalados

    • 24 respostas
  • Martin Hope
    Flimm Como posso usar o docker sem sudo? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    led-Zepp Como faço para salvar a saída do terminal em um arquivo? 2014-02-15 11:49:07 +0800 CST
  • Martin Hope
    ubuntu-nerd Como descompactar um arquivo zip do Terminal? 2011-12-11 20:37:54 +0800 CST
  • Martin Hope
    TheXed Como instalo um arquivo .deb por meio da linha de comando? 2011-05-07 09:40:28 +0800 CST
  • Martin Hope
    Ivan Como listar todos os pacotes instalados 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    David Barry Como determino o tamanho total de um diretório (pasta) na linha de comando? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher "Os seguintes pacotes foram retidos:" Por que e como resolvo isso? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford Como os PPAs podem ser removidos? 2010-07-30 01:09:42 +0800 CST

Hot tag

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve