Instale o MySQL no Ubuntu

1

Estou tentando instalar o MySQL no Ubuntu 16.04. Analisei vários posts aqui e serverfault para tentar resolver o problema, mas ainda persiste.

Eu instalei o MySQL usando:

sudo apt-get install mysql-server

Em seguida, depois de definir a senha do root, a instalação simplesmente trava:

Renaming removed key_buffer and myisam-recover options (if present)

Eu purgou e reiniciei, sem sorte.

Oct 11 11:56:40 ip-172-31-47-249 systemd[1]: Started ACPI event daemon.
Oct 11 11:56:41 ip-172-31-47-249 systemd[1]: Starting MySQL Community Server...
Oct 11 11:56:45 ip-172-31-47-249 systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
Oct 11 11:57:07 ip-172-31-47-249 dhclient[895]: DHCPREQUEST of 172.31.47.249 on eth0 to 172.31.32.1 port 67 (xid=0x132b1603)
Oct 11 11:57:07 ip-172-31-47-249 dhclient[895]: DHCPACK of 172.31.47.249 from 172.31.32.1
Oct 11 11:57:08 ip-172-31-47-249 dhclient[895]: bound to 172.31.47.249 -- renewal in 1677 seconds.
Oct 11 11:57:22 ip-172-31-47-249 systemd[1]: Failed to start MySQL Community Server.
Oct 11 11:57:22 ip-172-31-47-249 systemd[1]: mysql.service: Unit entered failed state.
Oct 11 11:57:22 ip-172-31-47-249 systemd[1]: mysql.service: Failed with result 'exit-code'.
Oct 11 11:57:22 ip-172-31-47-249 systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
Oct 11 11:57:22 ip-172-31-47-249 systemd[1]: Stopped MySQL Community Server.
Oct 11 11:57:22 ip-172-31-47-249 systemd[1]: Starting MySQL Community Server..
    
por panthro 11.10.2016 / 10:13

1 resposta

0

retirado do Launchpad :

[Workaround Option 1/3]

To reset your MySQL configuration back to defaults,
type "sudo update-alternatives --remove my.cnf /etc/mysql/my.cnf.migrated" after the upgrade.
Then use "sudo service mysql start" to start the MySQL daemon
and "sudo apt-get -f install" to recover your system packaging state.
    
por levanth 11.10.2016 / 10:19