๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

OS/๐ŸŽ MacOS

MacOS * MariaDB install

mac ์—์„œ ๋ฌด์–ธ๊ฐ€๋ฅผ ์„ค์น˜ํ•  ๋• ํ•ญ์ƒ,, Homebrew ์— ์žˆ๋Š”์ง€๋ถ€ํ„ฐ ํ™•์ธํ•œ๋‹ค.

Homebrew ๋ฅผ ์‚ฌ์šฉํ•ด์„œ ์„ค์น˜ํ•˜๋ฉด ๊ด€๋ฆฌ๊ฐ€ ์ข€ ํŽธํ•˜๋‹ค๊ณ  ๋Š๊ปด์ง€๊ธฐ ๋•Œ๋ฌธ์—...

 

๊ทธ๋ฆฌ๊ณ  ๋Œ€๋ถ€๋ถ„์€ Homebrew ๋ฅผ ํ†ตํ•ด ์„ค์น˜ ํ•  ์ˆ˜ ์žˆ๋‹ค.

์ด๋ฒˆ์— ์„ค์น˜ํ•  MariaDB ์—ญ์‹œ Homebrew ๋ฅผ ์‚ฌ์šฉํ•ด์„œ ์„ค์น˜ํ•  ๊ฒƒ์ด๊ธฐ ๋•Œ๋ฌธ์— ์ผ๋‹จ Homebrew ์—…๋ฐ์ดํŠธ๋ฅผ ๋จผ์ €ํ•ด์ค€๋‹ค.

์•„์ง Homebrew ์„ค์น˜๊ฐ€ ๋˜์–ด ์žˆ์ง€ ์•Š๋‹ค๋ฉด ์œ„ ๋งํฌ(Homebrew)๋ฅผ ์‚ฌ์šฉํ•ด์„œ ์„ค์น˜๋ถ€ํ„ฐ ์ง„ํ–‰ํ•˜์ž!

 

1. Update Homebrew

brew install mariadb

2. Install MariaDB

brew install mariadb

- ํŠน๋ณ„ํžˆ ์„ค์น˜ํ•˜๊ณ  ์‹ถ์€ ๋ฒ„์ „์ด ์žˆ๋‹ค๋ฉด ๋‹ค์Œ ๋ช…๋ น์–ด๋กœ ์„ค์น˜ํ•  ์ˆ˜ ์žˆ๋Š” ๋ฒ„์ „ ์ฒดํฌ๋ฅผ ํ•˜๊ณ  mariadb@๋ฒ„์ „ ์œผ๋กœ ์„ค์น˜ํ•ด์ฃผ๋ฉด ๋œ๋‹ค.

brew search mariadb
brew install mariadb@10.2

์„ค์น˜ ์™„๋ฃŒ ๋œ ๋ชจ์Šต

3. Check MariaDB connection

mysql -uroot -p

์ตœ์ดˆ ์ƒ์„ฑ ์‹œ ์„ค์ • ๋œ ๋น„๋ฐ€๋ฒˆํ˜ธ๊ฐ€ ์—†์–ด์„œ ์ ‘์† ์‹œ์— ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋œฐ ๊ฒƒ์ด๋‹ค.

ERROR 1698 (28000): Access denied for user 'root'@'localhost'

4. Regist password

sudo mysql -u root -p
set password=password('๋น„๋ฐ€๋ฒˆํ˜ธ');

- set password ๋ช…๋ น์–ด์˜ ๊ฒฝ์šฐ mariaDB 4 ์ด์ƒ๋ถ€ํ„ฐ ๊ฐ€๋Šฅํ•˜๋‹ค.

 

5. Check again to connect MariaDB

 

Tip. MariaDB ์‹œ์ž‘/์ข…๋ฃŒ/์ƒํƒœํ™•์ธ ๋ช…๋ น์–ด

mysql.server start
mysql.server stop
mysql.server status

 

 


Thanks for ๐Ÿ™ˆ