Skip to content
Code and Bytes Code and Bytes

Code and Bytes
Code and Bytes

Habilitar query log en MySQL

Posted on 24 October, 20199 April, 2020

Editar el archivo /etc/mysql/my.cnf y agregar al final del archivo:

[mysqld]
general_log=on
general_log_file=/var/log/mysql/query.log

Reiniciar el servicio

service mysql restart

Revisamos la salida

tail -f /var/log/mysql/query.log
Linux

Post navigation

Previous post
Next post

Related Posts

Linux

Incrementar el timeout de conexiones por SSH

Posted on 24 January, 202125 January, 2021

Cuando las conexiónes por ssh tardan un tiempo sin recibir ningun comando, éstas se desconectan. Para evitar esto debemos editar: Añadir:

Read More
Linux

Convertir archivos OVPN a archivos .ca .crt .key

Posted on 18 April, 202010 June, 2021

Se pueden convertir archivos OVPN a archivos individuales .ca, .crt, .key para usarlos en otras aplicaciones por ejemplo Network Manager o para teléfonos ip. nano ovpnconvert.sh Uso: ./ovpnconvert.sh FILE.ovpn

Read More

Error al instalar Wine: The following signatures couldn’t be verified because the public key is not available

Posted on 17 January, 2020

Cuando ejecutamos sudo apt-get update aparece el error: W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.winehq.org/wine-builds/ubuntu bionic InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F W:…

Read More

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Buscar

Categorias

  • AI (2)
  • Asterisk (9)
  • Bases de datos (1)
  • DevOps (4)
  • Git (2)
  • HTML (1)
  • Laravel (6)
  • Linux (67)
  • MCP Server (1)
  • Mikrotik (3)
  • MySQL (5)
  • n8n (1)
  • Personal (4)
  • PHP (15)
  • Python (2)
  • Software recomendado (1)
  • Tips (1)
  • VSCode (4)
  • vTiger (4)
  • Windows (10)
  • Wordpress (4)
©2026 Code and Bytes | WordPress Theme by SuperbThemes