fix port and db selection
This commit is contained in:
parent
cf3b82d032
commit
7a9bb5e9fe
5
main.py
5
main.py
@ -139,9 +139,12 @@ class MainWindow(QMainWindow):
|
||||
if __name__ == "__main__":
|
||||
import sys
|
||||
|
||||
conn = psycopg2.connect("user=postgres password=456")
|
||||
conn = psycopg2.connect("user=postgres password=456 host=localhost port=5432")
|
||||
|
||||
createuUiversityDB(conn)
|
||||
|
||||
conn = psycopg2.connect("user=postgres dbname=university password=456 host=localhost port=5432")
|
||||
|
||||
createUsersTable(conn)
|
||||
|
||||
values = [(1, 'Ivan', 15), (2, 'Igor', 22), (3, 'Alex', 16), (4, 'Anna', 40), (5, 'Inna', 30)]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user