[CS] MySQL Install Day-77

cptkuk91·2022년 3월 6일
1

CS

목록 보기
124/139

Install MySQL

Use Homebrew

brew install mysql
brew info mysql

Start MySQL

After install MySQL, Need to run MySQL program.

brew services start mysql

Connect MySQL

If there are error or any problem, you cannot connect.

mysql -u root

How to change Password

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

When install mysql for the first time, the root password is empty. After setting the password, connecting to mysql, you must enter the password to connect.

mysql -u root -p
profile
메일은 매일 확인하고 있습니다. 궁금하신 부분이나 틀린 부분에 대한 지적사항이 있으시다면 언제든 편하게 연락 부탁드려요 :)

0개의 댓글