Unable to connect streamlit with MARIADB in deployment but connected at local host

Hello! Can someone help me? Thanks!

public deploy app: https://projnuvem185-mujcwb3fgpqevxz9jewefg.streamlit.app/
public gituhub app: GitHub - w185206/projNuvem185

Python version: 3.9.2 (python3 --version)
Streamlit version: 1.28.0
MariaDb version: 10.5.21

Error Messages:
–error #1:
OSError: mysql_config not found
mysql_config --version
mariadb_config --version
mysql_config --libs
[end of output]

–error #2:
WARNING: You are using pip version 22.0.3; however, version 23.3.1 is available.
When I locally run ‘python3 --version’, the version it shows is 23.3.1 from /usr/lib/python3/dist-packages/pip.

You cannot connect to a database on your clients localhost, if the streamlit app runs on any hosted environment.

1 Like

Thanks a lot. Please, Does Streamlit.io have BD?

Hi! I tried connecting the app to the DB in pythonanywhere and it shows the same error. :frowning: