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

(Beginner) Python cannot import name FabricShard (no replies)

MySQL VERSION 5.7 Python version 2.7.5 mysqlfabric version 1.5.6 python connector version 2.1.6 I am able to located the place of declaration of FabricMySQLServer but not of FabricShard. Searched...

View Article


store and retrieve text file in mysql database by using python (2 replies)

Hello everyone, could you help me to store and retrieve text file in MySQL database, Thank you

View Article


Implementing a Menu in python to MySQL database (1 reply)

code for my menu, but how to implement? import _mysql buffer = "true" def oneQuery(): db = _mysql.connect(host="localhost",user="root",passwd="password123",db="mmorpgs") db.query("""SELECT * FROM...

View Article

Prepared Cursors, raw=True? (no replies)

I'm comparing results from two MySQL databases with Python. The first database query is batch, to retrieve all the comparison records from the source, so I didn't prepare it. I'm getting back Unicode...

View Article

Lpad not supporting %s in Python (no replies)

Hi, I am trying to query: cursor.execute("Select Lpad (%s,5,0)", (24)) which results in error: mysql.connector.errors.ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the...

View Article


shall I get some advice about using MySQL by Python3? (no replies)

i am newbie for MySQL, and now I want to use MySQL by python3; shall I get some advice for this?

View Article

Can't Get Result Set as Dictionary (1 reply)

So I'm using MySQL Connector/Python version 2.1.7 to execute a stored procedure. Result set is coming as list of tuples, which is expected. I need column names, so I'm using "dictionary=True" in the...

View Article

Beginner's mistake? removeConnections doesn't release the pool connections...

I am using mysql.connector.pooling.MySQLConnectionPool to create a connection pool and before exiting the app, I wanted to release the connections. So I called...

View Article


Legacy python sql connector pool (no replies)

I have been asked to make changes to a legacy python app which uses Python 2.4, MySQL 1.2.2 and wxpython. This is built into an installer using py2exe -> nsis. The original developer cannot be...

View Article


Multiple insert statements using execute(multi=True) (no replies)

I have a string constructed with multiple insert statements and insert statement with values given in multiple-row syntax. Is it possible to specify multiple insert statements along with values given...

View Article

Bulk insert query : executemany vs execute(multi = True) (no replies)

Which is more efficient executemany or execute(multi=True) for bulk insert query? operation = 'INSERT INTO tbl_name (a,b,c) VALUES(1,2,3),(4,5,6),(7,8,9) (11,22,33),(44,55,66)(77,88,99); INSERT INTO...

View Article

mysql-connector-python for python3 installed - where? (no replies)

I run Linux Mint 18.3 based on Ubuntu16.04.1. I have started to use python3.6 which I installed (python 2.7 & 3.5 obviousli came with the distro Mint 18.3) I have (via the community page) tried to...

View Article

connector/python (no replies)

Does python connection to MySQL work at all? I have now undertaken an extensive study of the topic, and the closest I get is this file...

View Article


Can't install connector-python for Python 3 on RHEL 6 (no replies)

I've been following the instructions at https://dev.mysql.com/doc/connector-python/en/connector-python-installation-source.html for installing from source on Unix systems. I have the mysql,...

View Article

MySQL 8.0: Connector/Python 8.0 (no replies)

MySQL Connector/Python 8.0 - https://insidemysql.com/using-mysql-connector-python-8-0-with-mysql-8-0/ DevAPI: - https://insidemysql.com/mysql-8-0-welcome-to-the-devapi/

View Article


Windows: connector 8.0.11 does not read "option_files" (no replies)

Hi, I've been having this problem for a while. The Python connector does not understand the "option_files" connection argument. I have the following situation: I have a development environment and I...

View Article

Connector 8.0.11 return binary keys??? (1 reply)

Here are 2 example results from queries performed using MYSQL connector 8.0... Before 8.0.11: {'Expiration': datetime.datetime(2018, 5, 9, 14, 30, 40), 'IdUser': 143, 'Id': 9999999, 'Token':...

View Article


Ordering a table in select statement by row creation/update time (no replies)

Hi all, When I was using sqllite3, I was able to sort table contents by system attribute "rowid" like "SELECT username FROM personal ORDER BY rowid". This attribute lists rows by creation time...

View Article

Mysql throwing an error but not able to catch using except (no replies)

I was going through the docs for mysql connector and came across this. https://dev.mysql.com/doc/connector-python/en/connector-python-example-ddl.html This is a sample code which I am running. from...

View Article

accessing data in python application (no replies)

Ive successfully connected mysql to Visual studio with the 'MySQL for visual studio' and 'Connector/Python' add ons. I am able to see my database connection in the server explorer and open tables...

View Article
Browsing all 384 articles
Browse latest View live