I’m trying to install the docker version of Percona and it fails with “MySQL init process failed.” after it starts the “MySQL init process in progress…”
Some article says its due to fewer resources and it needs min of 1GB RAM. My VM has 5GB of RAM and utilization is <3%.
Appreciate any guidance…
Here is the section from my docker-compose
mysql:
image: percona:ps-8.0
ports:
- 36000:3306
volumes:
- ./.docker/data/mysql:/var/lib/mysql
- ./.docker/mysql-home:/home/mysql
environment:
- MYSQL_DATABASE=dbname
- MYSQL_USER=dbuser
- MYSQL_PASSWORD=password
- MYSQL_ROOT_PASSWORD=rootpassword
- TZ=Asia/Kolkata
command:
- mysqld
- --group-concat-max-len=1048576
- --character-set-server=utf8mb4
- --userstat=on
- --sql-mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
- --default-authentication-plugin=mysql_native_password
Here is the docker Logs
debian@debian11:$ docker-compose up mysql
Creating mysql_1 … done
Attaching to mysql_1
mysql_1 | Initializing database
mysql_1 | 2023-04-21T13:24:43.407676Z 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.
mysql_1 | 2023-04-21T13:24:43.407729Z 0 [Warning] [MY-010918] [Server] ‘default_authentication_plugin’ is deprecated and will be removed in a future release. Please use authentication_policy instead.
mysql_1 | 2023-04-21T13:24:43.407740Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.32-24) initializing of server in progress as process 16
mysql_1 | 2023-04-21T13:24:43.415279Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
mysql_1 | 2023-04-21T13:24:43.853754Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
mysql_1 | 2023-04-21T13:24:45.422486Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
mysql_1 | Database initialized
mysql_1 | MySQL init process in progress…
mysql_1 | 2023-04-21T13:24:48.378138Z 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.
mysql_1 | 2023-04-21T13:24:48.378990Z 0 [Warning] [MY-010097] [Server] Insecure configuration for --secure-log-path: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path.
mysql_1 | 2023-04-21T13:24:48.379036Z 0 [Warning] [MY-010918] [Server] ‘default_authentication_plugin’ is deprecated and will be removed in a future release. Please use authentication_policy instead.
mysql_1 | 2023-04-21T13:24:48.379053Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.32-24) starting as process 62
mysql_1 | 2023-04-21T13:24:48.389400Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
mysql_1 | 2023-04-21T13:24:48.502450Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
mysql_1 | 2023-04-21T13:24:48.651543Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
mysql_1 | 2023-04-21T13:24:48.652030Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
mysql_1 | 2023-04-21T13:24:48.668006Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Socket: /var/lib/mysql/mysqlx.sock
mysql_1 | 2023-04-21T13:24:48.668452Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: ‘8.0.32-24’ socket: ‘/var/lib/mysql/mysql.sock’ port: 0 Percona Server (GPL), Release 24, Revision e5c6e9d2.
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process n progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process in progress…
mysql_1 | MySQL init process failed.
mysql_1 exited with code 1