Skip to content

Conversation

@MortyZhaoy
Copy link
Contributor

处理办法:

直接对SQLALCHEMY_DATABASE_URL.render_as_string(hide_password=False)的结果中的%进行处理

pre-commit 结果:

image

@wu-clan wu-clan linked an issue Sep 12, 2025 that may be closed by this pull request
@wu-clan wu-clan changed the title Fix Alembic failure when MySQL passwords contain special characters Fix special character password support in alembic Sep 12, 2025
@wu-clan
Copy link
Member

wu-clan commented Sep 12, 2025

非常感谢

@wu-clan wu-clan merged commit b525124 into fastapi-practices:master Sep 12, 2025
4 checks passed
@MortyZhaoy MortyZhaoy deleted the mysql_passwd_special_symbol_issues branch September 12, 2025 03:26
@MortyZhaoy MortyZhaoy restored the mysql_passwd_special_symbol_issues branch September 12, 2025 03:26
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

Successfully merging this pull request may close these issues.

MYSQL数据库密码包含特殊符号时,alembic执行失败

2 participants