Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
0 votes
1 answer
48 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
68 views

I'm trying to install mysqldb on python3.8 (Windows 11 24H2). I initially had issues with VSC++14 but I managed to solve them. pip install -U flask_mysqldb error: subprocess-exited-with-error ...
Christian Mahamba's user avatar
0 votes
0 answers
50 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
0 answers
25 views

When I am trying to connect the MySQL db that hosted in remote via the python library MySQLdb, I am getting the following error. (5010, "Authentication plugin 'mysql_old_password' couldn't be ...
Madhan's user avatar
  • 1,321
0 votes
3 answers
359 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
1 vote
1 answer
72 views

I am working on a website to recommend stocks on the stock market, based on historically reliable trading strategies. When running the server, I can't see any of the data which is supposed to be shown ...
Shmuel Newman's user avatar
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
77 views

import mysql.connector conn = mysql.connector.connect(host="localhost", user="root", password="") if conn.is_connected(): print("Successful") else: ...
Saifullah Anik's user avatar
0 votes
0 answers
38 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
70 views

I m unable to connect to my database and it gives this error that object is not callable. I did search up the error and even what it means. I changed a lots of stuff in the code but it didn't work for ...
Neos's user avatar
  • 11
0 votes
1 answer
84 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
1 vote
0 answers
20 views

I am trying to store pickled object into database and unpickle it back. Data is being stored in database, however after reading data its throwing an error during unpickle. Traceback (most recent call ...
Sanket's user avatar
  • 11
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
0 votes
0 answers
31 views

I'm trying to create a simple webpage using Flask. I have written code to fetch data from a MySQL database, but the code is not working, and I keep getting the error: Error: root: Error fetching ...
Krish Khadka's user avatar
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
41 views

In fact, I want to increase and decrease the mysql query items and the values ​​(arguments) according to the status of the variable values. based on my scenario I need to make a flexible mysql query ...
Alireza Mirhabibi - IRAN's user avatar
0 votes
1 answer
614 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
57 views

I am a fairly new student currently enrolled in Python and SQL for Data Science course from a website called Scaler. As part of the course, I am trying to understand the concepts of MySQL. The ...
Bedanta De'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
1 vote
2 answers
135 views

I've installed MySQL on my Windows desktop. The installation was successful. I downloaded the employees data from github and added it to my MySql server. I confirmed that through the MySQL 8.4 ...
David Collins'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
1 vote
0 answers
46 views

I am calling a function that uses a db cursor twice to retrieve data and pass it to an html file. @app.route("/EditSubjects", methods = ["POST"]) def editSubjects(): if session....
Antonio De La Garza'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
-1 votes
1 answer
69 views

I have the following three tables in a mysql database: grades: id st_id Q1 Q2 1 20001 93 89 2 20002 86 84 3 20003 82 83 4 20001 86 89 5 20002 89 54 6 20003 81 94 subjects: id subject yr 1 English 2023 ...
Kin Koder'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
1 vote
2 answers
343 views

I am newly learning Docker and compose, I have searched and watched many tutorials but could not understand what is causing this connection error: _mysql_connector.MySQLInterfaceError: Can't connect ...
Lightning's user avatar
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
1 vote
0 answers
45 views

I am working on making a API call and saving the data and storing it to MySQL database using Python. Below is a portion of my code: async def main(): user = input("Enter username: ") ...
Shres's user avatar
  • 11
0 votes
0 answers
100 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
1 answer
31 views

how to insert DateEntry widget selected by user into the database? t1 = DateEntry(self.root) cal.pack() then i called t1.get() into the inset function but i am getting error like dateentry do not have ...
val's user avatar
  • 1
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
-1 votes
1 answer
130 views

I'm trying to install the mysqlclient library via pip, but I'm getting this error: kanishka@kanishka-VivoBook-ASUSLaptop-X512FJ-X512FJ:~/Documents/Ceylone Soft/bcj_dev_back_end$ pip install ...
Kanishka Abeysinghe's user avatar
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
1 answer
23 views

I am actually a student trying to build a login/registration functionality within my project. I'm receiving errors in fetching an entire row from mysql which matches the tuple of input-based variables ...
Invictus's user avatar
0 votes
0 answers
976 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
0 votes
1 answer
57 views

When I try to put data in MySQL database it only puts in the structure data, and there are no rows inserted into the MySQL database. What could be the issue? import pandas as pd from sqlalchemy import ...
k5927211's user avatar
-2 votes
1 answer
845 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
31 views

Please Help Why route in terminal work? 127.0.0.1 - - [17/Jan/2024 00:20:04] "POST /classification/ HTTP/1.1" 302 - 127.0.0.1 - - [17/Jan/2024 00:20:04] "GET /hasil/True-NORMAL2-IM-0421-...
phpers's user avatar
  • 1
0 votes
0 answers
124 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
0 votes
0 answers
187 views

I've been using the Python MySQL Database MySQL connection (mysql-connector=2.2.9 and mysql=0.0.3) for almost a year and it worked as a charm. However, our WRITE permissions were removed from a core ...
Daniel Vilas-Boas'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
2 votes
1 answer
121 views

I tried to query some data from mysql database, but i couldn't fetch any data even though the data is indeed exist in the database and there is no error message whatsoever. mysql_config={ 'user' : ...
Satria Muhammad Saglan's user avatar
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
0 votes
0 answers
46 views

I created a function called block_unblocked which just changes a value from a mysql column called ABlocked. I wanted it to not accpect inputs with spaces in 'user' so I decided to call the function ...
Riku's user avatar
  • 23
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
1 answer
74 views

Im new to sql, I have been trying to make a function that will allow creation of new columns and to fill it. Its been giving these two errors: Failed executing the operation; Not all parameters were ...
Riku's user avatar
  • 23
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'm new to mysql, python and the mysql Python connector. Wanting to learn best-practice. I have an initialization method to create the db, create the tables and/or populate it with data (depending ...
mr.b's user avatar
  • 995
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 vote
1 answer
174 views

What is wrong with the below query. SELECT * FROM contract WHERE application_id="abcdef" AND JSON_CONTAINS(contract_details, '{"name":"~!@#$$%%^&*())_+?><,./:...
santosh's user avatar
  • 4,197

1
2 3 4 5
64