From 5721a75ed46438cf390559d76a12358cd7770edf Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Fri, 3 Jul 2020 17:09:05 +0530 Subject: connected database; backend complete --- app/test.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 app/test.py (limited to 'app/test.py') diff --git a/app/test.py b/app/test.py new file mode 100644 index 0000000..dddc9e7 --- /dev/null +++ b/app/test.py @@ -0,0 +1,5 @@ +import mysql.connector as con +mycon = con.connect(host="sql12.freesqldatabase.com",user="sql12352288",password="7X35JENbK3",port=3306,database="sql12352288") +mycursor = mycon.cursor() +mycursor.execute("SELECT COUNT(*) FROM curie") +id = mycursor.fetchall()[0][0] \ No newline at end of file -- cgit v1.2.3