Explorar o código

Updated credentials

Jovian Hersemeule (ECN Lab) %!s(int64=6) %!d(string=hai) anos
pai
achega
2717fe11fb
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      connect.py

+ 3 - 3
connect.py

@@ -1,10 +1,10 @@
 import psycopg2
 
-conn = psycopg2.connect("host=myHost dbname=myDB user=xxx password=yyy")
+conn = psycopg2.connect("host=appli-pfe.ec-nantes.fr dbname=app_bdonn_01 user=app2_01 password=osiris")
 
 cursor = conn.cursor()
 
-cursor.execute("SELECT * from person")
+cursor.execute("SELECT * from Product")
 
 rows = cursor.fetchall()
 
@@ -12,4 +12,4 @@ for row in rows:
 	print(row)
 
 cursor.close()
-conn.close()
+conn.close()