python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to do an insert in the database with Python
I have a Python script that does the Moodle version check.
After checking the Moodle version I would like to insert into the database but I am getting the following error:
line 337
mycursor = db.curso...
Jhon Laurence
Votes: 0
Answers: 3
in this python code WHILE loop is not working properly and it is showing this error ""local variable 'Owner_Id' referenced before assignment''''
I tried everything that I can do :
This code is the portion of MySQL Python connectivity project.
In this I want to get out of while loop by selecting "CHOICE 4"
print ("starts")
d...
Ekagra GUPTA
Votes: 0
Answers: 1
Trying to load data into mysql databse but keep getting error message
DatabaseError: (mysql.connector.errors.DatabaseError) 2005 (HY000): Unknown MySQL server host '@127.0.0.1' (11003)
(Background on this error at: https://sqlalche.me/e/14/4xp6)
engine = create_engine('...
mcq7
Votes: 0
Answers: 0
Why am I getting error "Client with IP address x.x.x.x isnt allowed to connect to this MySql server" when trying to connect to MySql from Django?
I am trying to create tables for my models in this full stack project (Django/React). After I run the python manage.py migrate command I'm expecting to see:
Migrations for X:
X\migrations\0001_init...
user2727050
Votes: 0
Answers: 1