启动Keystone同步数据库时提示:
-- ::24.010 TRACE keystone File "/usr/local/python2.7/lib/python2.7/site-packages/sqlalchemy/connectors/mysqldb.py", line , in dbapi
-- ::24.010 TRACE keystone return __import__('MySQLdb')
-- ::24.010 TRACE keystone ImportError: No module named MySQLdb
-- ::24.010 TRACE keystone
要安装下面的软件解决:
# pip install mysql-python
如果安装mysql-python时出现错误:“mysql_config not foud”,可以通过:
# apt-get install libmysqld-dev libmysqlclient-dev
来解决。
如果上面的方案都没有解决,
进入页面https://pypi.python.org/pypi/MySQL-python,下载最新版本的MySQL-python源码,在机器上面安装。