使用外置mysql数据库,为什么还会一直连接docker中的mysql呢?

datacase离线安装,版本是v2.10.18-ce,操作系统是银河麒麟X86_64
SQL State : 28000
Error Code : 1045
Message : Access denied for user ‘root’@‘172.20.0.2’ (using password: YES)

2026-01-13 15:28:59.725 INFO — [ main] .s.b.a.l.ConditionEvaluationReportLogger :

Error starting ApplicationContext. To display the condition evaluation report re-run your application with ‘debug’ enabled.
2026-01-13 15:28:59.766 ERROR — [ main] o.springframework.boot.SpringApplication : Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘schedulerStarter’: Unsatisfied dependency expressed through field ‘scheduler’: Error creating bean with name ‘flywayInitializer’ defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Unable to obtain connection from database: Access denied for user ‘root’@‘172.20.0.2’ (using password: YES)

SQL State : 28000
Error Code : 1045
Message : Access denied for user ‘root’@‘172.20.0.2’ (using password: YES)

但是我的conf/application.yml文件里面的配置信息是外置mysql的。

用户 ‘root’ 无法从 IP 地址 172.20.0.2 连接到 MySQL 数据库,检查一下权限