docker mysql表名和数据库名不区分大小写

version: '3'
services:
  mysql:
    image: mysql:tag
    environment:
      - MYSQL_LOWER_CASE_TABLE_NAMES=1
    volumes:
      - ./data:/var/lib/mysql
    ports:
      - 3306:3306
    restart: always
docker run -e MYSQL_LOWER_CASE_TABLE_NAMES=1 mysql:tag

 

posted @ 2024-03-29 12:52  shiningrise  阅读(67)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css