1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

mysql 9.7 がでていたので、dockerで試してみた

1
Last updated at Posted at 2026-04-25

mysql 9.7 がでていたのでいれてみた

docker-compose.yml

services:
  mysql:
    image: mysql:9
    container_name: mysql
    ports:
      - "3306:3306" 
    environment:
      MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
      MYSQL_DATABASE: ${MYSQL_DB}
      TZ: "Asia/Tokyo" 
    restart: always
    volumes:
      - ./.docker/mysql_data:/var/lib/mysql
      - ./.docker/conf.d:/etc/mysql/conf.d/

.env

MYSQL_DB=mysqldb
MYSQL_PASSWORD=xxxxxx

ファイアウォール(ubuntuの場合)

sudo ufw allow 3306/tcp

select version();

9.7.0

感想など

9.7 がでていたので、やってみましたが、今まで通りで大丈夫そうですね

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?