dartdog dartdog - 1 year ago 174
MySQL Question

mysql_config not found when installing mysqldb python interface for mariadb 10 Ubuntu 13.10

After I installed Mariadb 10 the Mysql workbench and JPDB client both connect and work fine so next step was get programming with Python (using SQLAlchemy) which seems to require MySQL-python so I went to update that and got:
"mysql_config not found" I looked in the "usual places" and did not see a file...

So I followed some ideas from an earlier question on SO
and tried to install: apt-get install libmysqlclient-dev

which got me to:
The following packages have unmet dependencies:
libmysqlclient-dev : Depends: libmysqlclient18 (= 5.5.35-0ubuntu0.13.10.2) but 10.0.10+maria-1~saucy is to be installed

which kind of hits a brick wall for me

Answer Source

Found it! The case is that mariadb has a compatible package, if you have the ppa setup as in http://downloads.mariadb.org/. Just "sudo apt-get install libmariadbclient-dev". thanks to http://data-matters.blogspot.com/2013/08/install-mysql-python-with-mariadb.html After this the mysql-python installs correctly

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download