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
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