mysql-connector-python Questions
1
Solved
Can someone please give an example to understand this?
After executing a query, a MySQLCursorBuffered cursor fetches the entire result set from the server and buffers the rows.
For queries exec...
Andra asked 11/10, 2017 at 7:13
2
Solved
I have to update millions of row into MySQL. I am currently using for loop to execute query. To make the update faster I want to use executemany() of Python MySQL Connector, so that I can update in...
Crystallography asked 3/5, 2016 at 13:53
0
I have the following code that runs very slowly (6.5sec for iterating over 57,390 rows) :
import mysql.connector
cnx=mysql.connector.connect(host=***, ***)
cursorSQL = cnx.cursor()
for dt in da...
Attitudinize asked 15/3, 2017 at 17:3
2
Solved
I'm trying to install mysql-connector-python and I'm getting the following error:
Could not find any downloads that satisfy the requirement mysql-connector-python==2.0.4 (from -r requirements.txt ...
Gavrilla asked 29/12, 2015 at 10:54
2
Solved
I'm reading a CSV file like this
Date,Open,High,Low,Close,Volume,Adj Close
2000-12-29,30.88,31.31,28.69,29.06,31702200,27.57
2000-12-28,30.56,31.62,30.38,31.06,25053600,29.46
2000-12-27,30.38,31.0...
Orchardman asked 2/8, 2014 at 10:18
1
Solved
import mysql.connector
config = {
'user' : 'root',
'passwd' : ' ',
'host' : 'localhost',
'raise_on_warnings' : True,
'use_pure' : False,
}
cnx = mysql.connector.connect(**config)
cnx.close(...
Blandina asked 24/4, 2015 at 14:37
3
Solved
EDIT:
This problem is unbelievable. I have now managed to replace an annoying print function with the time.sleep(0.01), but why on earth I should benefit from a SLOWER execution time is beyond me.
...
Pironi asked 24/10, 2012 at 8:59
1
Solved
Status Quo:
I have a working database with tables and can query, insert, update, etc. Also the cursor is connected to the right database.
The table:
Problem:
When it comes to querying data fr...
Sorrel asked 17/7, 2014 at 8:24
1
When trying to use prepared cursor and insert NULL values the mysql.connector reports an error:
mysql.Error: 1210 (HY000): Incorrect arguments to mysqld_stmt_execute
Here is a code that shows th...
Versus asked 13/6, 2014 at 15:27
1
Solved
I have a basic program that is supposed to query a database that contains user information. I am trying to select the information for a specific user and print it out to the console.
Here i...
Bridoon asked 12/5, 2014 at 2:43
© 2022 - 2024 — McMap. All rights reserved.