TypeError when inserting a date (no replies)
Hi, As far as I know I can insert a date into MySQL as long as the format corresponds to the date field attribute. My date column in MySQL is declared as datetime. So if I insert a date like...
View ArticleINSERT with SELECT (1 reply)
Hi, I run a python program which takes a flat log file as input to load it into a database in order for administrators to monitor their application. I have five tables : server table with two columns...
View ArticleMySQL TRIGGER and python (1 reply)
Hello, I'm trying to understand how the MySQL TRIGGER work and if they can be useful for my purpose. I would like to monitor the UPDATE of data in a table. trying to print on screen the changed data...
View Articlesys_exec () can run a python program (no replies)
hello, for test reasons, I have a python program who writes to a file. txt date and the current time. select sys_exec('python /var/test/script/aa.py'); I gave chown mysql:mysql aa.py and chmod 777...
View ArticleInstaller can't detect Python (5 replies)
Hi. I'm new to this forum but I'll try to be as clear as possible. I'm trying to install MySQL on my company's lab computer which runs Windows XP 32-bit. During the installation, however, the python...
View ArticleHow to use a new MySQL 5.6 --login-path parameter from scripts (no replies)
Hi, I am trying to find a way how to use a new MySQL 5.6 encrypted credential file mylogin.cnf from python scripts. I checked MySQLdb and MySQL connector libraries and didn't find any information so...
View Articlepip installs broken every time a new release is made (1 reply)
I use mysql-connector-python in a number of projects that use pip to set up virtualenvs. Every single time there is a new release of mysql-connector-python, I stop being able to build my application...
View ArticlePaython and Scrapy: error in your SQL syntax (no replies)
Python: I need a help for insert with Scrapy to MySQL. This is my error, Traceback: 2013-09-13 13:08:18-0700 [scrapy] Unhandled Error Traceback (most recent call last): File...
View ArticleMySQL Workbench export tool for SQLAlchemy Python ORM (no replies)
MySQL Workbench export tool for SQLAlchemy Python ORM - https://github.com/PiTiLeZarD/workbench_alchemy
View ArticleNeed help retrieving boolean value using MySQLdb (1 reply)
I have code written in python that accesses a Mysql database via the Mysqldb library. I can succesfully connect to the database and execute a query which then returns a value representing how many...
View Articlemysql-python 1.2.4 has hardcoded dependency on distribute 0.6.28 (no replies)
We are trying to use an internal PyPi server so we can be fully self-contained and not have to go through our proxy to connect to the global server. However, we've found that mysql-python 1.2.4 has a...
View ArticleUnable to install Connector/Python 1.1.4 (1 reply)
I have Python 3.3 installed and now I want to install Connector/Python 1.1.4. The documentation says that "On Microsoft Windows systems, you can download Connector/Python as a Zip archive from...
View ArticleUpgrade to Python Connector Fails (2 replies)
Windows 8.1 MySQL 5.6.16 64 bit Upgrade of Connector/Python 2.7.1.0.12 to 2.7.1.1.5 fails. It cannot find python.exe in D:\Python27 I have set the path D:\Python27 in environment variables and can run...
View ArticleGetting the output parameter after calling a stored procedure! (2 replies)
1. I did follow the example shown in the developer guide (page 45) as: stored procedure: CREATE PROCEDURE multiply(IN pFac1 INT, IN pFac2 INT, OUT pProd INT) BEGIN SET pProd := pFac1 * pFac2; END...
View ArticleIs the mysql_connect.commit() always require with Insert, Update and Delete...
I’m trying to insert a new record into the magazine_type table following the code below: sql = ('INSERT INTO magazine_type (type, description, notes, update_id) VALUES (%s, %s, %s, %s)') paremeters =...
View Articlemysql util 1.4.1 and connect-1.2.0 can not in the same host (4 replies)
/usr/local/lib/python2.7/site-packages/mysql/connector/errors.py first: mysql-connector-python-1.2.0 and mysql-utilities-1.4.1 can't in the same host???? my test found a problem, they have the the...
View ArticleHow to get the value of aggregate functions using MySQL Connector/Python? (2...
Sometimes we need get the value of the MySQL aggregate functions like COUNT, MAX, etc. For example, if I need to know how many records has a table, I could write the following code: mysql_connect =...
View ArticleWhere was the Connector/Python installed in Windows PC? (2 replies)
I have downloaded and installed the Connector/Python (mysql-connector-python-1.1.6-py3.3.msi) file in Windows 7. I can’t find the location path where it was installed. Can I look at the code? Thanks
View ArticleMySQLConnection.cmd_query(statement) Example (2 replies)
Hi, I would like to see an example code of the method MySQLConnection.cmd_query(statement). Is this method function as the command object in MySQL/.NET Connector? Thanks
View ArticleMySQL Connector/Python .dmg installation on osx “succeeds” but I cannot...
I downloaded Mysql Connector/Python 1.1.6 .DMG for OSX http://dev.mysql.com/downloads/connector/python/ When I run it, it says "installation successful" but gives no other installation or diagnostics....
View Article