Metastore switched to MySQL, unable to log in

Dify Version: 1.11.4

After deploying Dify inside a container and modifying the metadata database configuration, revisiting the install page resulted in an API error and constant redirection to the registration page. What could be the reason?

Database configuration changes:

DB_TYPE=mysql

DB_USERNAME=root
DB_PASSWORD=difyai123456
DB_HOST=db_mysql
DB_PORT=3306
DB_DATABASE=dify

Page API error: