Created
August 30, 2018 16:42
-
-
Save ViniFKroth/417e52a309966cf8e3d62ee2cf686b44 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Caso tenham problemas pra rodar e/ou instalar o mysql, rodem os comandos abaixo um por um e é sucesso: | |
| Desinstalando: | |
| sudo apt-get remove --purge mysql-server mysql-client mysql-common -y | |
| sudo apt-get autoremove -y | |
| sudo apt-get autoclean | |
| rm -rf /etc/mysql | |
| Instalando corretamente: | |
| sudo apt-get update | |
| sudo apt-get install mysql-server | |
| sudo systemctl start mysql (Starta o serviço) | |
| sudo systemctl enable mysql (Configura para restartar o server toda vez que o OS iniciar) | |
| Configurando: | |
| sudo mysql -u root -p | |
| (Abrirá um shell do mysql indentificado pelo símbolo "mysql->") | |
| USE mysql; | |
| ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '[novasenha]'; | |
| \q | |
| Pronto, a princípio deve estar rodando na porta 3306 em localhost, | |
| Para acessar o shell novamente via terminal usem o comando abaixo: | |
| mysql -u root -p | |
| E quando pedir a senha, utilizem a senha setada no comando presente da linha 20. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment