Closed bnxvs closed 1 year ago
Hey, @bnxvs ! Thanks for opening this issue
Looks like there is just a typo in secrets.toml
https://docs.streamlit.io/library/api-reference/connections/st.connections.sqlconnection
# .streamlit/secrets.toml
[connections.sql]
dialect = "mysql"
username = "user"
password = "password"
host = "127.0.0.1"
database = "mydb"
should work correctly
Please note that the section name is connectionS.sql
Oops... I'm sorry. It's my mistake. Thank you!
Checklist
Summary
StreamlitAPIException: Missing SQL DB connection configuration. Did you forget to set this in secrets.toml or as kwargs to st.experimental_connection?
Traceback: File "/Users/bnx/Desktop/R work/streamlit_tests/main.py", line 41, in
conn = st.experimental_connection("sql")
Reproducible Code Example
Steps To Reproduce
No response
Expected Behavior
No response
Current Behavior
No response
Is this a regression?
Debug info
Additional Information
No response
Are you willing to submit a PR?