简体   繁体   English

最好在基于64位Intel的Mac(Perl / Python用户)上安装MySQL 32位或64位吗?

[英]Better to install MySQL 32bit or 64bit on my 64bit Intel-based Mac (Perl/Python user)?

I have had numerous headaches trying to get the MySQL APIs for Perl and Python working on my 64 bit Macbook Pro (Leopard). 尝试让Perl和Python的MySQL API在我的64位Macbook Pro(Leopard)上运行时,我遇到了很多头痛的事情。 I installed the 64 bit version of MySQL, but Googling around now I have the impression that this could be the source of my pain. 我安装了64位版本的MySQL,但是现在使用Google搜索,我的印象是这可能是我痛苦的根源。 None of the various blogs and SO answers quite seem to work (for example here on SO ) 各种博客和SO答案似乎都不起作用(例如,在SO上

Could the 64 bit MySQL install be the culprit? 难道是64位MySQL安装的元凶? Can anyone confirm that they have MySQL access via Perl and/or Python on a 64 bit Mac using 64 bit MySQL? 谁能确认使用64位MySQL在64位Mac上通过Perl和/或Python可以访问MySQL吗? Did you do anything special or face some similar problems? 您做了什么特别的事情还是面临着类似的问题?

32-bit and 64-bit libraries don't play nice together. 32位和64位库不能很好地配合使用。 So, it depends whether you're using 32-bit Perl/Python or not. 因此,这取决于您是否使用32位Perl / Python。

If you are, you'll need 32-bit MySQL. 如果是这样,则需要32位MySQL。 Chances are your Python, at least, is 32-bit, since both the Apple-shipped Python and the binaries from python.org are 32-bit only. 可能您的Python至少是32位的,因为Apple附带的Python和python.org的二进制文件都只有32位。 You can build 64-bit Python (or- gasp - a 4-way i386/x86_64/ppc/ppc64 Universal Binary) from source, but unless you really need to work with absolutely huge disk files/amounts of memory (I'm talking multi-gigabyte memory maps, for example), chances are you do not need 64-bit anything right now. 你可以建立64位的Python(或- 喘气 - 4路的i386 / x86_64的/ PPC / PPC64通用二进制)从源代码,但除非你真的需要工作,绝对是巨大的磁盘文件/内存量(我说的例如,多GB的内存映射),您现在不需要64位的任何东西。

You will need the 32vit vs 64bit of the MySQL client libraries to match the application you're trying to link them with. 需要32vit vs 64bit的MySQL 客户端库来匹配您尝试与其链接的应用程序。 However, this not prevent you from connecting to a 64-bit install of MySQL server . 但是,这并不妨碍您连接到64位安装的MySQL 服务器

In Unix, the MySQL client libraries support multiple versions of themselves lying around; 在Unix中,MySQL客户端库支持自身的多个版本。 you just have to make sure the application is loading the correct one. 您只需要确保该应用程序正在加载正确的应用程序即可。 This should be true to the Mac. 这对于Mac应该是正确的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM