Python and mysql 5 (no replies)
There's no reason why you can't call MySQL stored procedures or stored functions from Python or any other language that can connect with MySQL 5. Calls to stored routines are queries, and can be...
View ArticleIndexing with MySql (1 reply)
Here's part of a script I'm working on below. I'm new to Python by the way:- # Checking and creating the first table 'data' if it doesn't already exist cursor = conn.cursor () cursor.execute ("DROP...
View ArticleReading microseconds datetime (mysql 5.6.7) (no replies)
I'm using python's MySQLdb to fetch rows from a MySQL 5.6.7 db, that supports microsecond precision datetime columns. When I read a row with MySQLdb I get "None" for the time field. Is there are way...
View Articlecallproc() with parameter doesnt return resultset (no replies)
I have this simple stored procedure which return resultset CREATE PROCEDURE spGetProductList() BEGIN SELECT ProductName, UnitPrice, UnitsInStock FROM products; END When I use callproc() to call these...
View ArticleGet errors when click mySql doc library (1 reply)
I got an error message when i tried to click on mySQL doc library. The error message is "Error during Open Document Library" "error calling Python module function WbDocLib.openDocLib" Do I missing the...
View ArticleCreate Stored Procedure using Python plugin in MySQL Workbench (no replies)
Good afternoon, I'm working on creating open source plugins for MySQL Workbench. I'm making some tests using the available classes for Python. I've found very usefull tutorials about creating columns...
View ArticleMySQL Connector/Python Django 1.4 (1 reply)
Hi, I read that django support is removed. https://launchpad.net/myconnpy/+announcement/3934 Is there a way to get the latest version working with django 1.4? Thanks, Dilip
View ArticleError while loading table with text file (no replies)
I have data in a text file which I need to upload into a table. My script in python 3 and uses mysql.connector (https://launchpad.net/myconnpy) to connect to DB and execute commands. I have been able...
View ArticleMySQL Utilities: mysqldbcompare (Python script) (no replies)
MySQL Utilities: mysqldbcompare (Python script) - checking master and slave for consistency - checking production and development databases for consistency - generating a difference report for...
View Articlecursor close and db commit (1 reply)
Hi, I am using MySQLdb and InnoDB, appreciate anyone help to clarify following questitions: (1) When I run select sql, I use cursor.execute(sql) without db.commit(), I only use db.commit() for insert...
View ArticleLoad Data Infile error with local-infile option enabled (no replies)
Hello, I'm trying to load a local csv file into my database with the command LOAD DATA LOCAL INFILE '/tmp/myfile.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' I'm getting the following...
View Articlemysql.connector/python vs MySQLdb (no replies)
It possible a novice question. If I want to develop Python program to work with MySQL. I should use mysql.connector or MySQLdb? What's the advantage and disadvantage?
View ArticleMySQL Connector/Python (1 reply)
Hi, We are developing app using Python 2.6 and MySQL 5.5.3 as DAtabase Server. can any one tell where can i get MySql Connector for Python 2.6. from below post, i find python connector for 2.7,3.3 and...
View ArticlePython/Connect and Placeholders (no replies)
Maybe this is too late in the evening, but this is driving me nuts. I have an SQL statement with one placeholder: sql = ("SELECT * FROM source AS s INNER JOIN bar AS B ON B.id = bar WHERE s.name =...
View ArticleWrong number of arguments during string formatting (no replies)
Been working on a project with the MySQL connector and it's been pretty painful. The docs don't seem to be very complete... (1) Does dict substitution work if the same value appears multiple times? It...
View ArticleUrgent Problem import mysql.connector (11 replies)
Dear Sir or Madam, I have an urgent problem with Sublime Text2 using Python. How can I import mysql.connector to use that stuff in my PlugIn in Sublime? It's possible to use it in Python IDLE, but in...
View ArticleQuestion with python connector 1064 (42000): You have an error in your SQL...
I have a small python program to generate following sql update AggGMDB set GMDBDIFF1 = ifnull(GMDB200603,0)- ifnull(GMDB200512,0) but it gives the following error...
View ArticleCannot display MySQL latin2_croation_ci characters in Python script (no replies)
I am trying to apply MySQL records in a Python script. The fields I am concerned with use latin2_croatian_ci collation characters. When I try to print out the following characters, Karadžić Stanišić...
View Articleimport sql connector (no replies)
Hi Folks I amusing Windows 7 x64, Python 3.3.1, mysql connector 1.0.9 I have tried my code line by line in the Python shell which works fine, I can import the connector and connect to the database and...
View Article