MariaDb: mudanças entre as edições

De Wiki Doth
Ir para navegação Ir para pesquisar
Linha 14: Linha 14:
<code>
<code>
GRANT ALL PRIVILEGES ON schema.table to 'usuario'@'%host';
GRANT ALL PRIVILEGES ON schema.table to 'usuario'@'%host';
FLUSH PRIVILEGES;
FLUSH PRIVILEGES;
</code>
</code>

Edição das 14h04min de 25 de setembro de 2021

Informações do Banco de Dados


Usuários

  • Criar

CREATE USER 'nome'@'host' IDENTIFIED BY 'senha';

  • Privilégios

GRANT ALL PRIVILEGES ON schema.table to 'usuario'@'%host';

FLUSH PRIVILEGES;

Configuração Geral

  • /etc/mysql/mariadb.conf.d/50-server.conf
  • bind-address = 0.0.0.0
  • query_cache_limit = 64M
  • query_cache_size = 256M #16M

Tunning Options

  • key_buffer_size = 6G #myisam tables
  • innodb_buffer_pool_size = 6G
  • innodb_lock_wait_timeout = 120
  • thread_cache_size = 21
  • skip-name-resolve

Variáveis especiais

  • SET SESSION group_concat_max_len = 1000000;


  • SET SESSION group_concat_max_len=4294967295; - 32bits
  • SET GLOBAL group_concat_max_len=4294967295; - 54bits