728x90
docker run --name mariadb -d -p 13306:3306 -v /data/mariadb:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=[root 비번] mariadb
docker exec -it mariadb /bin/bash
mysql -u root -p
grant all privileges on *.* to 'root'@'%' ;
flush privileges;
create user '[계정ID]'@'%' identified by '[계정비번]';
grant all privileges on *.* to 'letech'@'%' ;
flush privileges;
728x90
'docker' 카테고리의 다른 글
openstack 하에서 docker 외부 통신 오류 mtu 값 변경 (0) | 2020.09.17 |
---|---|
docker mariadb 테이블 대소문자 구별 적용(lower_case_table_names = 1) (0) | 2020.08.14 |
openstack centos 7 vm 환경에서 docker 19.03.05이상 설치시 문제 (0) | 2020.07.07 |
cent os docker 삭제 및 재설치 (0) | 2019.10.25 |
docker load 하기 (0) | 2019.10.24 |