Laradock 无法启动 mysql 容器

问题描述 投票:0回答:1

我正在配置laradock,但是好几天都无法修复这个错误。当我去找管理员,或者只是去某个地方的数据库时,我收到此错误

php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

这是来自

docker compose logs mysql
的日志:

mysql-1 | 2024-05-25 16:28:55+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.4.0-1.el9 started.
mysql-1 | 2024-05-25 16:28:55+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
mysql-1 | 2024-05-25 16:28:55+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.4.0-1.el9 started.
mysql-1 | 2024-05-25 16:28:55+00:00 [Note] [Entrypoint]: Initializing database files
mysql-1 | 2024-05-25T16:28:55.679424Z 0 [System] [MY-015017] [Server] MySQL Server Initialization - start.
mysql-1 | 2024-05-25T16:28:55.680681Z 0 [Warning] [MY-010915] [Server] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
mysql-1 | 2024-05-25T16:28:55.680788Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.4.0) initializing of server in progress as process 81
mysql-1 | 2024-05-25T16:28:55.682066Z 0 [Warning] [MY-013242] [Server] --character-set-server: 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
mysql-1 | 2024-05-25T16:28:55.686133Z 0 [ERROR] [MY-000077] [Server] /usr/sbin/mysqld: Error while setting value 'on else echo default-authentication-plugin=mysql_native_password' to 'mysql-native_password' -password'.
mysql-1 | 2024-05-25T16:28:55.686152Z 0 [ERROR] [MY-010746] [Server] Parsing options for plugin 'mysql_native_password' failed.
mysql-1 | 2024-05-25T16:28:55.687018Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
mysql-1 | 2024-05-25T16:28:55.896567Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
mysql-1 | 2024-05-25T16:28:57.356697Z 0 [ERROR] [MY-000067] [Server] unknown variable 'mysql_native_password=on else echo default-authentication-plugin=mysql_native_password'.
mysql-1 | 2024-05-25T16:28:57.357142Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it.
mysql-1 | 2024-05-25T16:28:57.357155Z 0 [ERROR] [MY-010119] [Server] Aborting
mysql-1 | 2024-05-25T16:28:58.918173Z 0 [System] [MY-015018] [Server] MySQL Server Initialization - end.

我重新安装了整个kubuntu系统几次,从0 laradock下载,但还是一样。

尝试通过以下方式解决,但均无效:

docker volume rm laradock_mssql

还删除了整个 mysql 容器但仍然相同

mysql docker laradock
1个回答
0
投票

谁有兴趣,我在

issue
存储库中写了一个
laradock/laradock
,并且有人做了一个修复了错误的PR。

由于新版本的

mysql 8.4

会出现冲突的问题

https://github.com/laradock/laradock/issues/3523

© www.soinside.com 2019 - 2024. All rights reserved.