我想在我的生產服務器上安裝mysql(Ubuntu 12.04)。我跟着這個教程http://www.saltycrane.com/blog/2008/07/how-set-django-mysql-ubuntu-hardy/然後我跑python manage.py syncdb
它表明這個錯誤https://gist.github.com/2777611django和生產中的mysql設置
我還檢查了這一點Getting "Error loading MySQLdb module: No module named MySQLdb" - have tried previously posted solutions然後我試圖運行pip install MySQL-python
,但沒有用,這說明這個錯誤https://gist.github.com/2777629
誰能告訴我這個問題?
謝謝!
感謝dgel,其實第二種方法工作。 – rnk
我相信Ubuntu 12.04中包的正確名稱是python-mysqldb;) – elias
@ eljunior-好,趕快,謝謝。我編輯了我的答案以反映您的更正。 – dgel