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

Python login (no replies)

need website code which lets a user enter a desired rental period, then displays a list of all cars available during this period. CREATE TABLE cars( plate varchar(10) NOT NULL, description...

View Article


SQL injection prevent (1 reply)

What can be done to prevent SQL injection # connect to database via ssh-tunnel and run query cnx = mysql.connector.connect(user='p11179711', password='VRandhawa51', host='127.0.0.1',...

View Article


mysql user permissions (no replies)

mysql user permissions a) how to write “special password string” that will grant you access for any name. (b) Create another “special password string” that will tell you the admin password.

View Article

What can be added to prevent SQL injection (no replies)

What can be added to prevent SQL injection # query to check password and get permissions query = "select permissions from users where name=? and pwd=?".format(name, pwd) # setup ssh tunnel with...

View Article

mysql.connector error reading LONGBLOB (no replies)

myTable has three columns: ('timeStamp', 'datetime') ('modelName', 'varchar(20)') ('model', 'longblob') When I try to SELECT from myTable, a TypeError occurs. Not sure why. ............ Error...

View Article


Monitor a Query then retrieve data using process ID (3 replies)

Is there a way to monitor a query to see when it is complete and then retrieve data using the process ID. I have an application that is executing some pretty large queries. What I would like to do is...

View Article

sick and twisted behaviour (no replies)

Hello, apparently I can create one cursor , execute one query and that's it If I repeat the query , then no queries are pushed to the db I cant use multiple cursors and I cant reuse the same cursor to...

View Article

5.2 Creating Tables Using Connector/Python code does not work (1 reply)

Hello, I am working through the MySQL Connector/Python Developer Guide on this website and the code appears to be non functional. Specifically at...

View Article


Errors on mysql sandbox create of replication sandbox (1 reply)

Hello to all I have been attempting to get just a small replication testing environment set up and I am running into problems. I have mysql-5.5.51-linux2.6-x86_64.tar.gz but when I run...

View Article


MySQLdb connection issues (1 reply)

I'm having issues connecting to mysql from my python script, here is what i get, [jonathan@hosname sql_scripts]$ python sql.py Traceback (most recent call last): File "sql.py", line 14, in...

View Article

Django 1.10 + mysql connector 2.1.4 (3 replies)

I have been trying to get django 1.10 to work with mysql for a while now and i have managed to get it working with mysql connector i ran into a few issues that i have been able to figure myself. A...

View Article

The performance is worse than pyMysql? (no replies)

I used pyMysql before. Now, I tried to use connection pool, and found there was a native pool implementation in the official connector. But, I compared their performance, and found MySQL...

View Article

Duplicate PRIMARY key problem (no replies)

environment: mysql 5.7 on rhl6 mysql-python/connector python 2.7.12 on windows, python 2.6.6 on rhl6 I have a time-series fact table with primary key on ID and a timestamp column. The ID column is a...

View Article


Upgrade Connector/Python (no replies)

Hi, I installed python connector a while ago using source distribution on Solaris. I see there are some security fixes to python connector and I would like to update it to the latest version. How...

View Article

MySQLInterfaceError: SSL is required but the server doesn't support it (no...

I am using MySQL Python/Connector 2.1.4 (with C extension) on an Ubuntu 16.04 64-bit system with Python 3.5.2 / 2.7.12. I have the following code - import _mysql_connector conn =...

View Article


Connector for python 3.5 in Windows (no replies)

When will we get a connector for version 3.5? Br Håkan

View Article

Error when executing MSI (no replies)

I have MySQL and Python on my computer. I want to write statements in Python scripts that extract (SELECT) data from a MySQL schema and other statements that INSERT data into MySQL tables. My version...

View Article


Querying Data from MySQL with Python (no replies)

Sorry Im new at python, and I couldnt find help elsewhere. Here's my situation: I got a table on a database, as following: image_name state type 57260-tracker-_tracker_face awake 0...

View Article

beginner's fault? import mysql.connector errors (no replies)

Hello, Running my python program I always get the following error lines: $ ./dbHandlingConnect.py Traceback (most recent call last): File "./dbHandlingConnect.py", line 13, in <module> import...

View Article

Python is slow when iterating over a cursor (no replies)

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...

View Article
Browsing all 384 articles
Browse latest View live


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