Quantcast
Channel: MySQL Forums - Connector/Python
Browsing index pages (388 articles)
↧

Python mysql-connector not working on Windows machine (Process ended with...

I have used this library on many Windows machines and I have noticed some strange behaviour. On some Windows machines it works without any issues, while other machines are giving error Process ended...

View Article


Connection failed to remote MySQL Server (1 reply)

Hello community, I have a Python code that enables connection to a remote MySQL Server using my-connector-python 9.2.0 library. The connection works well with localhost, but fails with remote server,...

View Article


Why I am unable to create connection with MySQL using python on Window 11 OS...

The program terminates automatically without throwing any error or output Server is also running on port 3306. Id and pass is also correct but still no output terminal just gets closed while...

View Article

MYSQL - Python Connector - No Response (1 reply)

Hello, Situation I am trying to troubleshoot my issue between Python and MYSQL. I have found myself in a situation where I am temporarily forced to develop on a Windows 11 machine. I am not sure if...

View Article

help needed (1 reply)

A very noob question maybe sorry Why am I getting a `mysql.connector.errors.InterfaceError: 2013, 'Lost connection to MySQL server during query' when executing large transactions?

View Article


mysql.connect kernel has died (no replies)

Dear all, I am trying to connect to my database using Python commands such as: conn= mysql.connector.connect(host='127.0.0.1', user='root', password='my_real_password', database='database_name')...

View Article

[BUG] v8.2.0 breaking with ssh tunnel (no replies)

Hi, Trying to run 8.2.0 of the mysql python connector with the sshtunnel package to connect to a remote server. The code is very simple and I used a new environment with bare minimum packages. It...

View Article

Poll: Anyone using c-extension? (no replies)

Hey devs Can I ask if you would reply to this thread and let me know if you are. using the c-extension and, if so, why? Thanks!

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


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

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

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

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


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

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

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

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

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


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

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 perform unit testing (4 replies)

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

View Article
Browsing index pages (388 articles)


Latest Images