Fiz o seguinte para tentar resolver o problema com o mysql: hh@hh:~$ sudo apt-get remove mysql --purge [sudo] senha para hh: Lendo listas de pacotes... Pronto Construindo árvore de dependências Lendo informação de estado... Pronto E: Impossível encontrar o pacote mysql hh@hh:~$ sudo apt-get remove mysql --purge Lendo listas de pacotes... Pronto Construindo árvore de dependências Lendo informação de estado... Pronto E: Impossível encontrar o pacote mysql hh@hh:~$ sudo apt-get install mysql-server Lendo listas de pacotes... Pronto Construindo árvore de dependências Lendo informação de estado... Pronto Os pacotes extra a seguir serão instalados: mysql-server-5.6 Pacotes sugeridos: tinyca Os NOVOS pacotes a seguir serão instalados: mysql-server mysql-server-5.6 0 pacotes atualizados, 2 pacotes novos instalados, 0 a serem removidos e 0 não atualizados. É preciso baixar 5.800 kB de arquivos. Depois desta operação, 51,0 MB adicionais de espaço em disco serão usados. Você quer continuar? [S/n] s Obter:1 http://br.archive.ubuntu.com/ubuntu/ wily-updates/main mysql-server-5.6 i386 5.6.28-0ubuntu0.15.10.1 [5.791 kB] Obter:2 http://br.archive.ubuntu.com/ubuntu/ wily-updates/main mysql-server all 5.6.28-0ubuntu0.15.10.1 [8.818 B] Baixados 5.800 kB em 24s (238 kB/s) Pré-configurando pacotes ... (Lendo banco de dados ... 190923 ficheiros e directórios actualmente instalados.) A preparar para desempacotar .../mysql-server-5.6_5.6.28-0ubuntu0.15.10.1_i386.deb ... Aborting downgrade from (at least) 10.0 to 5.6. If are sure you want to downgrade to 5.6, remove the file /var/lib/mysql/debian-*.flag and try installing again. dpkg: erro ao processar o arquivo /var/cache/apt/archives/mysql-server-5.6_5.6.28-0ubuntu0.15.10.1_i386.deb (--unpack): sub-processo novo script pre-installation retornou estado de saída de erro 1 A seleccionar pacote anteriormente não seleccionado mysql-server. A preparar para desempacotar .../mysql-server_5.6.28-0ubuntu0.15.10.1_all.deb ... A descompactar mysql-server (5.6.28-0ubuntu0.15.10.1) ... Erros foram encontrados durante o processamento de: /var/cache/apt/archives/mysql-server-5.6_5.6.28-0ubuntu0.15.10.1_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1) hh@hh:~$ sudo /etc/init.d/mysql restart planetas@planetas-HP-Mini-110-3100:~$ sudo service mysql restart Failed to restart mysql.service: Unit mysql.service is masked. hh@hh:~$ sudo touch /var/run/mysqld/mysqld.sock touch: não foi possível tocar “/var/run/mysqld/mysqld.sock”: Arquivo ou diretório não encontrado hh@hh:~$ sudo touch -R mysql:mysql /var/lib/mysql touch: opção -- 'R' inválida Try 'touch --help' for more information. hh@hh:~$ sudo chown -R mysql:mysql /var/lib/mysql hh@hh:~$ cat /etc/mysql/my.cnf # # The MySQL database server configuration file. # # You can copy this to one of: # - "/etc/mysql/my.cnf" to set global options, # - "~/.my.cnf" to set user-specific options. # # One can use all long options that the program supports. # Run program with --help to get a list of available options and with # --print-defaults to see which it would actually understand and use. # # For explanations see # http://dev.mysql.com/doc/mysql/en/server-system-variables.html
# This will be passed to all mysql clients # It has been reported that passwords should be enclosed with ticks/quotes # escpecially if they contain "#" chars... # Remember to edit /etc/mysql/debian.cnf when changing the socket location. # Here is entries for some specific programs # The following values assume you have at least 32M ram !includedir /etc/mysql/conf.d/ hh@hh:~$ mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Já tentei vários outros procedimentos além desses, e sempre reaparece esse erro: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1509840 Title: package mysql-server-5.6 (not installed) failed to install/upgrade: sub-processo novo script pre-installation retornou estado de saída de erro 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.6/+bug/1509840/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs