Skip to content

Cannot create new container mysql 8.0 #1103

Open
@suandedev

Description

@suandedev
docker run --name db-1 --env MYSQL_ROOT_PASSWORD='password' mysql:8.0
2025-03-08 07:00:28+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.41-1.el9 started.
2025-03-08 07:00:28+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2025-03-08 07:00:28+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.41-1.el9 started.
2025-03-08 07:00:28+00:00 [Note] [Entrypoint]: Initializing database files
2025-03-08T07:00:28.804352Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
2025-03-08T07:00:28.804702Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.41) initializing of server in progress as process 80
2025-03-08T07:00:28.818478Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2025-03-08T07:00:30.162416Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2025-03-08T07:00:33.175299Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
2025-03-08 07:00:39+00:00 [Note] [Entrypoint]: Database files initialized
2025-03-08 07:00:39+00:00 [Note] [Entrypoint]: Starting temporary server
2025-03-08T07:00:40.149728Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
2025-03-08T07:00:40.151311Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.41) starting as process 124
2025-03-08T07:00:40.166619Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2025-03-08T07:00:40.575918Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2025-03-08T07:00:40.894771Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2025-03-08T07:00:40.894819Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2025-03-08T07:00:40.901709Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
2025-03-08T07:00:40.923237Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Socket: /var/run/mysqld/mysqlx.sock
2025-03-08T07:00:40.923721Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.41'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  MySQL Community Server - GPL.
2025-03-08 07:00:40+00:00 [Note] [Entrypoint]: Temporary server started.
'/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/leapseconds' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/tzdata.zi' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/zone1970.tab' as time zone. Skipping it.
ERROR 1064 (42000) at line 8: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '''' at line 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions