/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew 설치하고 난 후 뜨는 Next steps 터미널에 꼭 입력할 것 => 환경변수 설정 과정
ex)
==> Next steps:
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/rowan/.bash_profile
eval "$(/opt/homebrew/bin/brew shellenv)"
brew help
brew --version
brew install mysql
mysql --version
mysql -V
mysql.server start
mysql.server stop
mysql_secure_installation
Securing the MySQL server deployment.
Connecting to MySQL using a blank password.
VALIDATE PASSWORD COMPONENT can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD component?
Press y|Y for Yes, any other key for No: n
Q. 비밀번호 복잡하게 할거냐? => No
New password: mysql
Re-enter new password: mysql
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. This is intended only for
testing, and to make the installation go a bit smoother.
You should remove them before moving into a production
environment.
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Q. 기본적으로 만들어지는 익명유저를 삭제할거냐? => Yes
Normally, root should only be allowed to connect from
'localhost'. This ensures that someone cannot guess at
the root password from the network.
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
Q. 원격에서 root로 로그인하는 것을 막겠느냐? => Yes
By default, MySQL comes with a database named 'test' that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : n
Q. 테스트용 DB 지울거냐? => No (굳이)
Reloading the privilege tables will ensure that all changes
made so far will take effect immediately.
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Q. 설정 내용을 테이블에 적용할거냐? => Yes
All done!
mysql -uroot -p
Enter password: mysql
brew services start mysql
=> mysql을 데몬으로 실행하기 (Deamon: 운영체제의 백그라운드 상태에서 계속 실행되는 프로그램)
brew services restart mysql
brew services list
brew services stop mysql
brew search mysql_client
brew install mysql_client
brew install mysqlworkbench --cask
brew install git
git --version