Skip to main content
  1. Posts/

Mysql+docker

24 字· 0 · 0 ·
mysql ‘docker’
  1. 版本8.0.19

  2. 安装命令

    docker run -p 3306:3306 --name mysql \-v /mydata/mysql/log:/var/log/mysql \-v /mydata/mysql/conf/my.cnf:/etc/mysql/my.cnf \-v /mydata/mysql/data:/var/lib/mysql \-e MYSQL_ROOT_PASSWORD=root \-d mysql:8.0.19
    
  3. 命令

    docker exec -it mysqlone /bin/bash