|
I'm setting up an app server that will run django. The MySQL database is in a different server.
When I try to install MySQL-python I'm getting the following error:
EnvironmentError: mysql_config not found
Do I need to install MySQL in my app server in...
Started by Catalina on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
Yes, you will need to install the client portion of mysql:
For Redhat/Centos:
# yum install mysql
For Ubuntu/Debian:
# apt-get install mysql-client
In most cases you will need at least mysql-client.
|
|
I am finding it difficult to use MySQL with Python in my windows system.
I am currently using Python 2.6. I have tried to compile MySQL-python-1.2.3b1 (which is supposed to work for Python 2.6 ?) source code using the provided setup scripts. The setup...
Started by Sammy on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
You're not the only person having problems with Python 2.6 and MySQL ( http://blog.contriving.net-in-windows-vista/ Good luck
There are Windows binaries for MySQL-Python (2.4 & 2.5) available python libraries in the....
|
|
This question is based on the answer .
I would like to know how you can hash your password by SHA1 and then remove the clear-text password in a MySQL database by Python.
How can you hash your password in a MySQL database by Python?
Started by Masi on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
That said, you can use the....
That the user has.
As the documentation says you should use hashlib library not the sha since python 2.5.
Http://docs.python.org/library/sha.html
The python documentation explains this a lot better than I can.
|
Ask your Facebook Friends
|
Hi, how to convert python date format to 10 digit date format for mysql
example: date in python -> 11-05-09
to something like 1239992972 (10 digit)
Thanks
Answer Snippets (Read the full thread at stackoverflow):
See http://docs.python.org....
11-05-09) and a format and it will return a struct_time, which you can get the numerical value from (by calling time.mktime on the returned struct_time) .
You can use the time module's strptime - you pass in a string time (e.g .
|
|
Is there another way to connect to a MySQL database with what came included in the version of Python (2.5.1) that is bundled with Mac OS 10.5.x? I unfortunately cannot add the the MySQLdb module to the client machines I am working with...I need to work...
Started by skylarking on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
- The Python documentation mentions popen4, which 'executes cmd as a subprocess....
For example,
import subprocess to standard error by mysql, use popen3.
python's subprocess module to call mysql commands (such as the one above).
|
|
Is there a module written purely in Python that will allow a script to communicate with a MySQL database? I've already tried MySQLdb without success. It requires too much: GCC, zlib, and openssl. I do not have access to these tools; even if I did, I don...
Started by Tony on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
As mentioned in earlier answer, MySQL Connector/Python implements the MySQL alternative....
Https://launchpad.net/myconnpy
I haven't found of the documentation.
There's a project at Sun to implement 100% python mysql driver.
|
|
I am finally starting with python. i wanted to ask if i use the mysql db with python, how should i expect python to connect to the db? what i mean is, i have mysql installed in xampp and have my database created in mysql through php myadmin. now my python...
Started by amit on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Hi
the basics is
import MySQLdb conn = MySQLdb.connect(host="localhost", user="root....
Do not use ’.
Use simple apostrophes ' or simple quotes ".
You've got some kind of asymmetric quote.
If you simply cut and pasted, you have the wrong kind of quotes .
|
|
I have had numerous headaches trying to get the MySQL APIs for Perl and Python working on my 64 bit Macbook Pro (Leopard). I installed the 64 bit version of MySQL, but Googling around now I have the impression that this could be the source of my pain....
Started by mblackwell8 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You can build 64-bit Python....
Chances are your Python, at least, is 32-bit, since both the Apple-shipped Python and the binaries from python.org are 32-bit only.
If you are, you'll need 32-bit MySQL.
Perl/Python or not.
|
|
Trying to install MySQL for Python . Two problems:
1) Instructions over the net says installation is python setup.py
For me, it results with can't open file 'setup.py': [Errno 2] No such file or directory
2) README.txt says: The Z MySQL database adapter...
Started by konzepz on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Try one.
You are confusing A Zope product ( ZMySQLDA ) with the python-mysqldb package.
If you're using a Debian based distro you can :
apt-get install python-mysqldb ( or aptitude if you prefer ).
|
|
I had trouble installing a local installation of mysql, so I have a connection to a remote mysql database via an IP tunnel, I connect to it via typing localhost in perl and python scripts. Something weird is happening and I want to check the connection...
Started by John on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Another option is to get....
If you want to test MySQL commands from the command line then you will have to install the MySQL command line client.
Err, have you tried the mysql client? It defaults to localhost if -h is not specified.
|