Categories
Development MySQL Python

insert variables in RDS DB by python

I run code with python and the data come from it i want to save in mysql RDS but i have error the error (‘Connected to MySQL Server version ‘, ‘5.7.26-log’) (“You’re connected to database: “, (u’attendance1′,)) MySQL connection is closed Traceback (most recent call last): File “v8.py”, line 79, in mySql_insert_query = (“””INSERT INTO […]

Categories
Development MySQL Python SQL

insert data in RDS MySQL with python ( IndentationError: unindent does not match any outer indentation level)

I use RDS MySQL, and I want to insert data in a table with Python code, but I have the error File “DB2.py”, line 23 mySql_insert_query = “””INSERT INTO empolyee (ID, Name, date) VALUES (1, ‘reham’, ‘2019-08-14’)””” IndentationError: unindent does not match any outer indentation level the code import mysql.connector from mysql.connector import Error from […]