Back to feed
Renewal·서른의 생활코딩

Rookie Coder's MySQL Intro - Uninstalling MySQL and a Fresh Install

NS
normalstory
cover image

Rookie Coder's MySQL Intro - Uninstalling MySQL and a Fresh Install 


My MySQL install that used to work fine... stopped connecting the way it used to after I installed Bitnami!!! 

Argh~~ thanks to that, I lost an hour and a half ㅜㅜ 

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 

I kind of expected something like this since Bitnami bundles a bunch of stuff together... I thought just tweaking the port would do it.. but it doesn't seem that simple.. Since the digging was dragging on too long, brew I decided to uninstall the MySQL I had originally installed via brew and just reinstall it. 



1. Uninstall

First, here's how to uninstall MySQL that was installed via homebrew . It's a foreign-language link, but.. 

You can just copy and paste what's in the first chapter into your terminal.

https://coderwall.com/p/os6woq/uninstall-all-those-broken-versions-of-mysql-and-re-install-it-with-brew-on-mac-mavericks

In case you did a regular install

https://codingisgame.tistory.com/12  following this should work.




2. Fresh install — and how to get it running: 

https://opentutorials.org/course/3161/19532 — just follow this and you'll be up and running right away..


For reference, 

the installer file link is https://www.mysql.com/products/community/ and 

the community version offered there is free to use.

The latest version is a little different from Egoing's video. Nothing worrying, just a bit more streamlined. 

You can just stick with the defaults, and at some point it asks you to set a password directly.

What used to be set up in the terminal (cmd) on older versions can now be configured right during installation, which is a lot more convenient.



3. Running it 

cd /usr/local/mysql/bin/

$ ./mysql -uroot -p

$ enter the password you set during install

 


4. Result  


This English version was translated by Claude.

친절한 찰쓰씨
Written by
친절한 찰쓰씨

Pleasant Charles — UI/UX researcher at AIT. Keeping notes on design, planning, and slow days here since 2010.

More on the author's page

Keep reading

Renewal

Steadily, for the long haul, without burning out

Mar 31, 2026·9 min
Renewal

Tech-life balance

Feb 7, 2026·3 min
Renewal

Humanality, by Park Jeong-ryeol

Feb 7, 2026·11 min