MySql

I have repeated the example of connecting a Streamlit app to MySQL, but it doesn’t work. When I use just a code from Jupiter it works perfectly. Please, help me I need a data base and Deta will be shot down in 1 week…Thanks in advance