Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
49 views

Attempt to connect to MySQL-database by module MySQLdb fails and will be responded by: name 'MySQLdb' is not defined... in the servers log. Environment is not virtual, framework is Flask The ...
PythonNewbie's user avatar
0 votes
0 answers
51 views

I am build a system include server, mobile app and desktop app. server.py from flask import Flask, jsonify, request, g, send_file from flask_cors import CORS import mysql.connector import data.data as ...
user30342228's user avatar
0 votes
3 answers
363 views

While trying to connect Python with SQL, it just does not work, with no errors, the execution stops itself, here's the code: import mysql.connector def appen(): print('k') mysq = mysql....
krishi's user avatar
  • 27
0 votes
0 answers
36 views

Traceback (most recent call last): File "S:\Python\lib\site-packages\mysql\connector\network.py", line 733, in open_connection self.sock.connect(sockaddr) ConnectionRefusedError: [...
Shreeyansh Singh Sajwan's user avatar
0 votes
0 answers
39 views

I'm working on a Django project and I've encountered an issue that I'm unable to resolve. When I try to run my application, I get the following error: django.db.utils.OperationalError: (1463, "...
sype's user avatar
  • 11
0 votes
1 answer
86 views

I am using cursor.execute to generate the file my_file.csv and save it in /var/lib/mysql-files. Here is my code: import mysql.connector connection = mysql.connector.connect(host='localhost', port='...
B612's user avatar
  • 25
2 votes
0 answers
122 views

I have a code that pulls data from mysql database using python mysql connector and I want to create a progress bar in python using tkinter that shows query execution progress. I have created a loop ...
Chinedu's user avatar
  • 51
1 vote
0 answers
55 views

I am trying to insert new rows in a table that might already exist with constant values given from my application. I have tried to create the following code: with engine.begin() as con: con....
Port's user avatar
  • 131
0 votes
1 answer
616 views

Unable to run django application in the latest amazon Linux AL2023 running python3.9 It reports mySQLDB module is not installed, I tried installing mysql module using pip and yum but nothing helped to ...
user3369417's user avatar
0 votes
0 answers
102 views

I need to analyze data from sql server. The process is memory heavy which requires me to use my university's computing resources as opposed my personal computer. Due to university policy, I cannot ...
Luis Enriquez-Contreras's user avatar
0 votes
1 answer
732 views

I've been using a Python script for a couple of years without a problem on Xubuntu 20.04, now on 24.04, I’m getting errors connecting to the MySQL server on the same machine. Relevant code: import ...
pssturges's user avatar
0 votes
1 answer
30 views

I am getting errors while inserting value to a newly added column. import mysql.connector mydb = mysql.connector.connect( host = 'localhost', username = 'rt', password = 'rt', database ...
Bruce_Wayne's user avatar
0 votes
1 answer
67 views

I am creating a Django project on Mac. I want to use MySQL for database. I am trying to install MySQLdb which gives the following error: (djangodev) $ pip3 install MySQL-python ...
user3282758's user avatar
  • 1,493
0 votes
0 answers
85 views

I'm using Python MySQL connector and I know there is a table named "users" in this db. I keep running into this issue no matter what I try (show tables, select * from users, etc). I even ...
user23472212's user avatar
0 votes
0 answers
101 views

In AWS, i had a RDS with active connections. I am able to retrieve no of active connections but not sure how to get those active details using python. If i find the RDS has active db connections, then ...
vamsi krishna's user avatar
0 votes
0 answers
76 views

I have a flask application that uses flask_mysqldb to connect with database. I had imported MySQLdb and flask_mysqldb packages to use. Some update today morning screwed this. I had to replace MySQLdb ...
Sriram's user avatar
  • 10.6k
6 votes
2 answers
2k views

I have a problem with pandas to_sql in current version. I already set create engine with SQLAchemy like this db_url = "mysql+mysqlconnector://{USER}:{PWD}@{HOST}/{DBNAME}" db_url = db_url....
stevanus hendry's user avatar
0 votes
0 answers
978 views

I am encountering an issue with a ModuleNotFoundError when trying to import the mysql.connector module in my Python script. I have already installed the module using pip install mysql-connector-python,...
Gopika Sreekumar's user avatar
-2 votes
1 answer
847 views

I bumped into the error when running python3 manage.py runserver. I have mydb.py in the project's root directory (same as manage.py), in order to connect to MySQL and create a database (if it does not ...
marc's user avatar
  • 189
0 votes
0 answers
125 views

I've developed a Flask app that communicates with a MySQL 5.7 database on Google Cloud SQL, with both the app and the database residing within the same Google Cloud Project. Locally, my app ...
Student's user avatar
2 votes
2 answers
3k views

I already tried to install wheel -- didn't work well. Tried to install build tools -- didn't work Tried to install MySQL connector/C and put it in the environment variables -- didn't work Tried ...
Jasper's user avatar
  • 61
0 votes
0 answers
112 views

when I start the python application in macOS 13.4 with M1 chip, shows error like this: Traceback (most recent call last): File "<frozen importlib._bootstrap>", line 1027, in ...
Dolphin's user avatar
  • 40.8k
6 votes
1 answer
2k views

I'm using python:3-slim Docker image and want to use the mysqlclient package from Pypi but getting the following error from RUN pip install mysqlclient command: ... Collecting mysqlclient ...
Alastair McCormack's user avatar
1 vote
0 answers
118 views

I'm trying to understand the exact meaning of SSL while trying to connect to a MySQL server (via mysql-connector-python). I have MySQL (v5.7) setup locally and I have 2 users. One (root) is the ...
Vaibhav's user avatar
  • 627
0 votes
1 answer
78 views

I am trying to program a simple dropdown where I do get data from the MySQLdb connection and cycle woth Flask through the resuls, but the data is not shown correctly. I have consulted and followed ...
Dogra's user avatar
  • 1

1
2 3 4 5
64