Installing MySQL DB-API driver on Kubuntu 11.10 in Console:
sudo apt-get install libmysqlclient-dev sudo apt-get install python-dev
In virtual env of your Pyramid installation:
$ easy_install mysql-python
For MS Windows installation details see please online book: The Definitive Guide to Pylons – James Gardner.
For SQLAlchemy in Pyramid framework in development.ini and production.ini:
# mysql sqlalchemy.url = mysql://DB_USER:PASSWORD@localhost:3306/DATABASE_NAME sqlalchemy.pool_recycle = 3600