반응형
Recent Posts
Recent Comments
관리 메뉴

개발잡부

Mac Docker Mysql 설치하기 본문

Docker

Mac Docker Mysql 설치하기

닉의네임 2020. 1. 14. 22:52
반응형

#mysql 이미지검색

docker search mysql

 

docker pull mysql/mysql-server:latest

docker run --name=mysql -p 3306:3306 -d mysql/mysql-server:latest

docker logs mysql

docker logs mysql 2>&1 | grep GENERATED

 

[Entrypoint] GENERATED ROOT PASSWORD: -3h;YR@Bs3m+UvB4jURIc0BkIt4

 

docker exec -it mysql mysql -uroot -p

ALTER USER 'root'@'localhost' IDENTIFIED BY 'doo';

flush privileges;

반응형

'Docker' 카테고리의 다른 글

[docker] Error response from daemon: network myapp not found  (0) 2022.10.29
[docker] Dockerfile  (0) 2022.09.24
[docker] docker rmi must be forced  (0) 2022.05.21
Portainer 설치  (0) 2020.03.22
레디스를 설치해보자  (0) 2020.03.04
Comments