MYSQL 8 on Mac OS Catalina (10.15.7)

Upgrade mysql5.6 to 8.0.25

  1. simply delete entire /usr/local/mysql where v5 installed
brew remove mysql
brew cleanup

sudo rm /usr/local/mysql
sudo rm -rf /usr/local/var/mysql
sudo rm -rf /usr/local/mysql*
sudo rm ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/MySql*

launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist

rm -rf ~/Library/PreferencePanes/My*    
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /private/var/db/receipts/*mysql*

  1. download 8.0.25 from https://dev.mysql.com/downloads/mysql/

NOTE: download is free but you need to create your account first. Also download .dmg

  1. The installation is pretty straightforward. When “Configure MySQL Server”, you MUST CHECK on “Use Legacy Password Encryption” otherwise you’ll screw later with “ERROR 2059 (HY000): Authentication plugin ‘caching_sha2_password’ cannot be loaded: dlopen(/usr/local/Cellar/mysql@5.6/5.6.51/lib/plugin/caching_sha2_password.so, 2): image not found”
  1. make the shell access
echo 'export PATH="$PATH:/usr/local/mysql/bin"' >> ~/.zprofile
source ~/.profile
mysql -u root (or your username) -p
  1. Download MySQL Workbench

https://dev.mysql.com/downloads/workbench/ go to Archive to select 6.3.10 (the latest version is for 11. Big Sur)

Hello real world!!

This is the 1st post.

This blog is about productions process, something I want to share with you things I’ve noticed through developing a content such as video, animation and web development.

WordPress installation

I’ve installed WordPress in to my digitalocean.com server.

ENVIRONMENT

  • Ubuntu 18.04.4
  • PHP7.2
  • MySQL 14.14
  • NGINX 1.14.0

I had a hard time configure nginx to enable php. The reason was simply the PHP-FPM location. So when you configure, please make sure the path

location ~ \.php$ {
                fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
                include fastcgi.conf;
                }