Skip to content

Instantly share code, notes, and snippets.

View hirro's full-sized avatar
:octocat:
Something

Jim hirro

:octocat:
Something
View GitHub Profile
@joseluisq
joseluisq / mysql_query_log.md
Last active June 3, 2025 14:18
How to enable the MySQL/MariaDB general query logs

How to enable the MySQL/MariaDB general query logs

  1. Enter to MySQL/MariaDB server command-line tool (change root with your username and password):
mysql -u root -proot
  1. Set the general log file path:
SET GLOBAL general_log_file='/var/log/mysql/mycustom.log';
@vitorbritto
vitorbritto / rm_mysql.md
Last active July 8, 2025 13:59
Remove MySQL completely from Mac OSX

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

    brew remove mysql