Skip to content

Instantly share code, notes, and snippets.

@airtonGit
Created May 7, 2020 14:01
Show Gist options
  • Save airtonGit/2a77e6976b255f1b155a805f69edbf35 to your computer and use it in GitHub Desktop.
Save airtonGit/2a77e6976b255f1b155a805f69edbf35 to your computer and use it in GitHub Desktop.
MySQL otimizar todas as tabelas do banco de dados, melhora muito consultas com joins rodando em containers
#!/bin/bash
docker exec running-container-id sh -c 'exec mysqlcheck -uroot -p"$MYSQL_ROOT_PASSWORD" nome-banco'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment