Skip to content

Instantly share code, notes, and snippets.

View Levii01's full-sized avatar
📷
the code is like pasta, yum yum

Miłosz Sędziak Levii01

📷
the code is like pasta, yum yum
  • Warsaw
View GitHub Profile
@stefanbauer
stefanbauer / fix_mysql_big_sur.sh
Created August 14, 2020 11:29
Fix MySQL 5.7 ERROR 1524 (HY000): Plugin ‘auth_socket’ is not loaded in macOS Big Sur
# If you don't use brew services, install it
# https://github.com/Homebrew/homebrew-services
# Stop MySQL
brew services stop mysql@5.7
# Start MySQL in safe mode
mysqld_safe --skip-grant-tables &
# Login to MySQL
# Wouldn't it be great if you could have STI like functionality
# without needing to encode strings of class names in the database?
# Well today is your lucky day! Discriminable Model is here to help.
#
# Simply specify your models desired type column, and provide a block to
# do the discrimination. If you want the whole STI-esque shebang of properly
# typed finder methods you can supply an array of 'discriminate_types' that will
# be used to apply an appropriate type.
#
# class MyModel < ActiveRecord::Base
@vitorbritto
vitorbritto / rm_mysql.md
Last active April 9, 2024 14:26
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