Mysql search
1. brew search mysql
Mysql ๋ค์ด
2. brew install mysql
3. (์๋ฌ ๋ฐ์ํ์๊ฒฝ์ฐ) brew install openssl
* Error ๋ฐ์ ์ด์ : homebrew update ๋ฌธ์ *
์ฐธ๊ณ : https://jinmay.github.io/2020/05/18/mysql/fix-error-installing-mysql-on-mac/
[mysql]macOS์์ brew๋ก mysql ์ค์นํ ๋ ์ฃผ์ํ ์
brew install ๋ช ๋ น์ด๋ฅผ ํตํด mysql์ ์ค์นํ ๋, ๊ฐ๋ ์ ์ ์๋ ์๋ฌ๊ฐ ๋ฐ์ํ ๋๊ฐ ์๋ค. openssl์ ์ฌ์ค์นํด๋ณด๊ณ git๊ณผ gcc ๋ฑ์ ๋ค์ ์ค์นํด๋ณด์๋ ํด๊ฒฐ ํ ์ ์์๋ ์ ์ด ์๋๋ฐ ์๊ฐ์ธ๋ก ๊ฐ๋จํ๊ฒ
jinmay.github.io
Mysql ๋ค์ด
4. ๋ค์ brew install mysql
Mysql ๋ค์ด ํ์ธ
5. brew list๋ก ๋ค์ด๋ก๋๊ฐ ๋์๋์ง ํ์ธ
Mysql server ์คํ
6. mysql.server start
Mysql ์ค์
7. mysql_secure_installation
7-1. VALIDATE PASSWORD ์ค์ ์ฌ๋ถ
Would you like to setup VALIDATE PASSWORD component? Press y|Y for Yes, any other key for No: no
7-2. Anonymous Users ์ญ์ ์ฌ๋ถ
Remove anonymous users? (Press y|Y for Yes, any other key for No) : no
7.3. ์๊ฒฉ IP ์ ์ ํ์ฉ ์ฌ๋ถ
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : yes
7-4. ๊ธฐ๋ณธ DB์ธ test ์ ์ง ์ฌ๋ถ
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : no
7-5. ๋ณ๊ฒฝ๋ ์ค์ ๋ด์ญ์ ์ฆ์ ์ ์ฉํ ๊ฑด์ง
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : yes
Mysql ์ ์
8. mysql -u root -p ์์์ ์ค์ ํ๋ ๋น๋ฐ๋ฒํธ ์ ๋ ฅ
9. mysql >
status ํ ์ํ ํ์ธ
Mysql ์ข ๋ฃ
10. mysql>
exit
10. mysql.server stop
+ ์ถ๊ฐ
mysql-client casks์ mysqlworkbench ์ค์น
11. brew install mysql-client
12. brew cask install mysqlworkbench ์ค๋ฅ๊ฐ ๋ฐ์ํ ๊ฒฝ์ฐ
13. brew install --cask mysqlworkbench ๋ก ๋ฐ๊ฟ๋ณด์.
์ค๋ฅ๊ฐ ๋ฐ์ํ๋๋ฐ ์ด์ ๋ ๋ฒ์ ์ด ๋๋ฌด ๋์์.. (์ฐธ๊ณ ํ๊ธฐ)
https://archive-me-0329.tistory.com/10
M1 ๋งฅ๋ถ์ MySQL Workbench ์ค์นํ๊ธฐ
์์ ์์๋ ํ๊ณผ ์์ฒด ๋ฆฌ๋ ์ค ์๋ฒ๋ฅผ ์ฐ๊ธฐ ๋๋ฌธ์ workbench ๋ฅผ ์ธ์ผ์ ์์ง๋ง, ๊ทธ๋๋ ๋์ค์ ํธํ๋ค๊ณ ํด์ ์ค์น๋ฅผ ์งํํ๋ค. ๊ทธ๋ฐ๋ฐ ์ด๊ฒ ๋ฌด์จ... ๋ m1 ์นฉ์ ์ฅ๋์ธ์ง ์ค์น๋ ๋์๋๋ฐ ๋ณด์์ ํด
archive-me-0329.tistory.com