I'm using Ansible to automate the tasks to backup a mysql database and when running the mysql_db
tasks I'm getting this message: msg: the python mysqldb module is required
So, after to many attempts to install python-mysqldb
using Ansible tasks I've tried to install it manually executing the command sudo apt-get install python-mysqldb
and I got the following error message:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-mysqldb
I'm using Ubuntu 13.04 64bits
What am I doing wrong?
What's the way to install python-mysqldb
using apt-get
?
pip install mysql-python
. It's usually better to install python packages this way as not all linux distros support every python package...