How to get MySQLdb running on Mountain Lion with Python 2.7 and MySQL 5.6.11 x86_64 -


i have gone through various possibities of installing mysql following hundreds of advice (e.g. here on stackoverflow) in order mysqldb running. after having installed xcode , command line codes solved initial command 'clang' failed exit status 1 error sitting following error message: mach-o, wrong architecture. have python 64 bit, mysql 64 bit installed (please see below). have installed mysql-connector-python-1.0.10. problem here?

>>> import mysqldb traceback (most recent call last): file "<stdin>", line 1, in <module> file "/library/python/2.7/site-packages/mysql_python-1.2.4b4-py2.7-macosx-10.8-intel.egg/mysqldb/__init__.py", line 19, in <module> import _mysql importerror: dlopen(/library/python/2.7/site-packages/mysql_python-1.2.4b4-py2.7-macosx-10.8-intel.egg/_mysql.so, 2): no suitable image found.  did find: /library/python/2.7/site-packages/mysql_python-1.2.4b4-py2.7-macosx-10.8-intel.egg/_mysql.so: mach-o, wrong architecture 

python version:

>>>print (sys.version) 2.7.2 (default, jun 16 2012, 12:38:40)  [gcc 4.2.1 compatible apple clang 4.0 (tags/apple/clang-418.0.60)]  >>> print platform.architecture() ('64bit', '') 

mysql version:

welcome mysql monitor.  commands end ; or \g. mysql connection id 11 server version: 5.6.11 mysql community server (gpl)  copyright (c) 2000, 2013, oracle and/or affiliates. rights reserved.  oracle registered trademark of oracle corporation and/or affiliates. other names may trademarks of respective owners.  type 'help;' or '\h' help. type '\c' clear current input statement.  mysql> show global variables 'version_compile_machine'; +-------------------------+--------+ | variable_name           | value  | +-------------------------+--------+ | version_compile_machine | x86_64 | +-------------------------+--------+ 1 row in set (0,00 sec) 

ok: mysqldb requires mysql not higher version 5.5. had version 5.6. fixed it.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -