workbench

    AWS ec2 ์ธ์Šคํ„ด์Šค mysql ์›๊ฒฉ ์ ‘์†

    ์ €๋ฒˆ ์‹œ๊ฐ„์—๋Š” aws ec2 ์ธ์Šคํ„ด์Šค์— LEMP ์„œ๋ฒ„๋ฅผ ๊ตฌ์ถ•ํ•œ ๊ฒƒ์œผ๋กœ ๋งˆ๋ฌด๋ฆฌ ํ•˜์˜€๋‹ค. [10000sukk.tistory.com/25] ์ด๋ฒˆ ๊ฒŒ์‹œ๊ธ€์—์„œ๋Š” mysql ์— ์›๊ฒฉ์œผ๋กœ ์ ‘์†ํ•˜๋Š” ๊ฒƒ์„ ํ•˜๊ฒ ๋‹ค. ์›๊ฒฉ ์ ‘์†์œผ๋กœ mysql workbench ๋ฅผ ์ด์šฉํ•œ๋‹ค. ์„ค์น˜๋Š” brew cask install mysqlworkbench 1. mysql ์— ์ ‘์†ํ•ด์„œ user ๋ฅผ ์ถ”๊ฐ€ํ•ด ์ฃผ์ž ssh ์—์„œ sudo mysql -u root -p ๋ฅผ ํ†ตํ•˜์—ฌ์„œ ์ ‘์†. 1) ์œ ์ € ์ƒ์„ฑ user ๋ฅผ ์ƒ์„ฑํ•ด ์ค€๋‹ค. - 'testUser'@'%' : testUser id๋Š” ์™ธ๋ถ€์—์„œ ์ ‘๊ทผ ๊ฐ€๋Šฅ - 'testUser'@'localhost' : testUser id๋Š” ๋‚ด๋ถ€์—์„œ ์ ‘๊ทผ ๊ฐ€๋Šฅ - 'testUser'@'192.168.0.xxx' :..