Quantcast
Channel: MySQL Forums - Connector/Python
Browsing all 384 articles
Browse latest View live
↧

Problem with inserting data into MySQL (no replies)

Hi I want to read the data of a sensor and transfer it to MySQL local host with "mysql.connector". The problem is that it reads the data as a list containing 500 data (that is, it reads 500 to 500,...

View Article


I cannot implement python along with MySQL integration (2 replies)

I am facing issue that I can not implement MySQL in my system what would be main reason

View Article


mysql.connector.errors.InterfaceError: 2003 (2 replies)

here is not easy to leave the code, so I post in here https://stackoverflow.com/questions/75304961/mysql-connector-errors-interfaceerror-2003 I write a .py script can extract mysql data and print it...

View Article

Upgrade to a newer protobuf version (3 replies)

In Apache Airflow we have mysql-conneector-python integration that currently holds us back from upgrading to protobuf 4. Having limitation to Requires-Dist: protobuf (<Requires-Dist: protobuf...

View Article

Connection Arguments - host (2 replies)

Hi How to configure host argument correctly when I have SQL DB on server instance? I have configured user only for this instance. When im trying put: host='server_name\instance_name' I have an error:...

View Article


Support for protobufs 4? (3 replies)

The current latest version of mysql-connector-python (8.0.32) has a dependency conflict with the oldest version of google-ads (19.0.0) that works with current Google APIs (v12+). The conflict is...

View Article

Not all records - EOF deprecation / protocol.py (1 reply)

On larger queries - not all of the records are making it to my .fetchall() statement. I've tracked it down to a potential issues within protocol.py, where a deprecated EOF is being detected, which...

View Article

deallocating None issue with connect/disconnect (4 replies)

Hi all, I run into a "deallocating None" error, if I use connect()/disconnect(): ... 'None' refcount: 4 'None' refcount: 3 'None' refcount: 2 Fatal Python error: deallocating None Python runtime...

View Article


How to perform unit testing (4 replies)

I want to know how to execute unittests.py with my own database parameters.

View Article


Using mysql-connector-python 8.0.33 with MySQL 8.1 (2 replies)

Hi, I would like to know if using mysql-connector-python 8.0.33 with MySQL 8.1 is officially supported, or if I am required to use mysql-connector-python==8.1.0. Thanks for your help.

View Article

How to set a driver-side query execution timeout (no replies)

Hi, is there a way to set a driver-side query execution timeout? We noticed that the MySQL JDBC driver supports setting a driver-side socket/network timeout but the MySQL Python driver does not. This...

View Article

SSL error using mysql-connector-python 8.2.0 (no replies)

Hello Experts, i am using a simple python script to connect to mysql PAAS instance import mysql.connector from mysql.connector import errorcode import os try : RPA_db =...

View Article

Unexpected error when calling purge command via execute (no replies)

Hello! Running python3.8, mysql-connector-python 8.3.0, and mysql 8.0.35, I've run into something that I'm unsure qualifies as a bug, but at the very least I find strange behavior. I've got some...

View Article


MySQL Asynchronous Connectivity with MySQL Connector/Python (no replies)

https://blogs.oracle.com/mysql/post/mysql-async-connectivity-with-connector-python

View Article

migrating multi-line SQL commands from pymysql (no replies)

I've been tasked with migrating from pymsqyl to mysql.connector . . . we have a bunch of code that has multi-line SQL statements that don't run as expected in mysql.connector, viz. only the first...

View Article


Python Connector gives incorrect result (no replies)

This python code: ```python import mysql.connector try: conn = mysql.connector.connect( host="localhost", user="fanw", password="secret", database="fanw" ) cursor = conn.cursor() query = """ CREATE...

View Article

ClientFlag MULTI_STATEMENTS (no replies)

I checked documents, but can't found sample codes of executing multi statements using mysql-connector-python, so need help to correct the following. ``` import mysql.connector from mysql.connector...

View Article


Slow query performance (no replies)

Hi I have written a Python program to strip down a csv log file that contains every connection to our streaming server. The data is stripped from the csv log and then processed line by line and each...

View Article

TypeError( TypeError: Python 'states' cannot be converted to a MySQL type (no...

Using `mysql-connector-python` 8.4.0 with Python 3.11 and Django 4.2 I have a model `Job` and when I try to create an instance, I get the following error which seems to suggest that the connector is...

View Article

Async connector and connection pool (1 reply)

Hello! I developed an application, basted on FastAPI, currently implemented using the classic blocking MySQL Python connector, which allows multiple clients to concurrently query the database. In...

View Article
Browsing all 384 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>