sajjadyazdanparast commited on
Commit
5f338f0
1 Parent(s): ec3ff39

UPDATE add port to secrets.toml and app.py

Browse files
Files changed (2) hide show
  1. .streamlit/secrets.toml +1 -1
  2. app.py +1 -1
.streamlit/secrets.toml CHANGED
@@ -1,3 +1,3 @@
1
- db_host = '193.105.234.23'
2
  db_username = "sajjad_quera"
3
  db_password = "P@ssword1401"
 
1
+ db_host = '193.105.234.23:3306'
2
  db_username = "sajjad_quera"
3
  db_password = "P@ssword1401"
app.py CHANGED
@@ -10,7 +10,7 @@ st.sidebar.title('DataBases')
10
  try :
11
  cnx = get_connection(user=st.secrets.db_username, password=st.secrets.db_password, host=st.secrets.db_host)
12
  except :
13
- cnx = get_connection(user="sajjad_quera", password="P@ssword1401", host='193.105.234.23')
14
 
15
 
16
  if 'databases' not in st.session_state :
 
10
  try :
11
  cnx = get_connection(user=st.secrets.db_username, password=st.secrets.db_password, host=st.secrets.db_host)
12
  except :
13
+ cnx = get_connection(user="sajjad_quera", password="P@ssword1401", host='193.105.234.23:3306')
14
 
15
 
16
  if 'databases' not in st.session_state :