安装MySQL5.6.51容器一直在重启中

在应用商店用默认配置安装MySQL5.6.51后,一直会显示重启中,安装5.7.44正常启动

日志如下:

2024-01-25 09:34:51 45 [Note] InnoDB: Tablespace and datafile system tables created.
2024-01-25 09:34:51 45 [Note] InnoDB: Waiting for purge to start
2024-01-25 09:34:51 45 [Note] InnoDB: 5.6.51 started; log sequence number 0
2024-01-25 09:34:51 45 [Note] RSA private key file not found: /var/lib/mysql//private_key.pem. Some authentication plugins will not work.
2024-01-25 09:34:51 45 [Note] RSA public key file not found: /var/lib/mysql//public_key.pem. Some authentication plugins will not work.
2024-01-25 09:34:52 45 [Note] Binlog end
2024-01-25 09:34:52 45 [Note] InnoDB: FTS optimize thread exiting.
2024-01-25 09:34:52 45 [Note] InnoDB: Starting shutdown...
2024-01-25 09:34:53 45 [Note] InnoDB: Shutdown completed; log sequence number 1625977


2024-01-25 09:34:53 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
2024-01-25 09:34:53 0 [Note] /usr/sbin/mysqld (mysqld 5.6.51) starting as process 68 ...
2024-01-25 09:34:53 68 [Note] InnoDB: Using atomics to ref count buffer pool pages
2024-01-25 09:34:53 68 [Note] InnoDB: The InnoDB memory heap is disabled
2024-01-25 09:34:53 68 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2024-01-25 09:34:53 68 [Note] InnoDB: Memory barrier is not used
2024-01-25 09:34:53 68 [Note] InnoDB: Compressed tables use zlib 1.2.11
2024-01-25 09:34:53 68 [Note] InnoDB: Using Linux native AIO
2024-01-25 09:34:53 68 [Note] InnoDB: Using CPU crc32 instructions
2024-01-25 09:34:53 68 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2024-01-25 09:34:53 68 [Note] InnoDB: Completed initialization of buffer pool
2024-01-25 09:34:53 68 [Note] InnoDB: Highest supported file format is Barracuda.
2024-01-25 09:34:53 68 [Note] InnoDB: 128 rollback segment(s) are active.
2024-01-25 09:34:53 68 [Note] InnoDB: Waiting for purge to start
2024-01-25 09:34:53 68 [Note] InnoDB: 5.6.51 started; log sequence number 1625977
2024-01-25 09:34:53 68 [Note] RSA private key file not found: /var/lib/mysql//private_key.pem. Some authentication plugins will not work.
2024-01-25 09:34:53 68 [Note] RSA public key file not found: /var/lib/mysql//public_key.pem. Some authentication plugins will not work.
2024-01-25 09:34:53 68 [Note] Binlog end
2024-01-25 09:34:53 68 [Note] InnoDB: FTS optimize thread exiting.
2024-01-25 09:34:53 68 [Note] InnoDB: Starting shutdown...
2024-01-25 09:34:55 68 [Note] InnoDB: Shutdown completed; log sequence number 1625987




PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

  /usr/bin/mysqladmin -u root password 'new-password'
  /usr/bin/mysqladmin -u root -h 9b2981201f15 password 'new-password'

Alternatively you can run:

  /usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

Please report any problems at http://bugs.mysql.com/

The latest information about MySQL is available on the web at

  http://www.mysql.com

Support MySQL by buying support/licenses at http://shop.mysql.com

Note: new default config file not created.
Please make sure your config file is current

WARNING: Default config file /etc/mysql/my.cnf exists on the system
This file will be read by default by the MySQL server
If you do not want to use this, either remove it, or use the
--defaults-file argument to mysqld_safe when starting the server

2024-01-25 09:34:55+00:00 [Note] [Entrypoint]: Database files initialized
2024-01-25 09:34:55+00:00 [Note] [Entrypoint]: Starting temporary server
2024-01-25 09:34:55+00:00 [Note] [Entrypoint]: Waiting for server startup
/usr/local/bin/docker-entrypoint.sh: line 113:    93 Killed                  "$@" --skip-networking --default-time-zone=SYSTEM --socket="${SOCKET}"
2024-01-25 09:35:26+00:00 [ERROR] [Entrypoint]: Unable to start server.
2024-01-25 09:35:27+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
2024-01-25 09:35:27+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2024-01-25 09:35:27+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
2024-01-25 09:35:31+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
2024-01-25 09:35:31+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2024-01-25 09:35:31+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
2024-01-25 09:35:33+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
2024-01-25 09:35:33+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2024-01-25 09:35:33+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
2024-01-25 09:35:37+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
2024-01-25 09:35:37+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2024-01-25 09:35:37+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
2024-01-25 09:35:41+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
2024-01-25 09:35:41+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2024-01-25 09:35:41+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
2024-01-25 09:35:46+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
2024-01-25 09:35:46+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2024-01-25 09:35:46+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
2024-01-25 09:35:55+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
2024-01-25 09:35:55+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2024-01-25 09:35:55+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
2024-01-25 09:36:10+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
2024-01-25 09:36:10+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2024-01-25 09:36:10+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
2024-01-25 09:36:38+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
2024-01-25 09:36:38+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2024-01-25 09:36:38+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.

1panel版本:v1.9.4

在 CentOS7,Ubuntu 20.4 等环境测试未发现上述问题。

可能和服务器操作系统有关系

我的系统是Debian12