Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql启动报错了 #49

Open
lovefan-fan opened this issue Jun 8, 2024 · 1 comment
Open

mysql启动报错了 #49

lovefan-fan opened this issue Jun 8, 2024 · 1 comment

Comments

@lovefan-fan
Copy link

2024-06-08 06:11:39+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.4.0-1.el9 started.
2024-06-08 06:11:39+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2024-06-08 06:11:39+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.4.0-1.el9 started.
2024-06-08 06:11:39+00:00 [Note] [Entrypoint]: Initializing database files
2024-06-08T06:11:39.701834Z 0 [System] [MY-015017] [Server] MySQL Server Initialization - start.
2024-06-08T06:11:39.703699Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.4.0) initializing of server in progress as process 80
2024-06-08T06:11:39.735029Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2024-06-08T06:11:43.555450Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2024-06-08T06:11:56.018019Z 0 [ERROR] [MY-000067] [Server] unknown variable 'default-authentication-plugin=mysql_native_password'.
2024-06-08T06:11:56.019667Z 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.
2024-06-08T06:11:56.019713Z 0 [ERROR] [MY-010119] [Server] Aborting
2024-06-08T06:11:57.653685Z 0 [System] [MY-015018] [Server] MySQL Server Initialization - end.

@ProudMuBai
Copy link
Owner

用最新的docker-compose.yaml文件就可以了, 旧版本里面有个default-authentication-plugin=mysql_native_password配置好像会让mysql容器报错, 去掉就可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants