简体   繁体   English

在Mac OS X Lion上安装MySQL?

[英]Install MySQL on Mac OS X Lion?

I have downloaded the MySQL community server and extracted the files from the .tar file. 我已经下载了MySQL社区服务器,并从.tar文件中提取了文件。 But how do I install it? 但是我该如何安装呢? I simply cannot find a easy way to to this, or any method for that matter. 我根本找不到解决此问题的简便方法,也找不到任何解决方法。 Or is it already installed after tar xvf MySQL.tar ? 还是在tar xvf MySQL.tar之后已经安装? And also, when installing the .pkg version, shouldn't it create the files anywhere? 而且,在安装.pkg版本时,它不应该在任何地方创建文件吗? Finally, the community server is the one used with django right? 最后,社区服务器是与django一起使用的服务器吗?

Thanks in advance! 提前致谢!

I would suggest using the .dmg version. 我建议使用.dmg版本。 It's an easier way of installing mysql, it can be a pain http://dev.mysql.com/downloads/mysql/ 这是安装mysql的一种更简单的方法,可能会很痛苦http://dev.mysql.com/downloads/mysql/

If you are developing and testing, do you really need to use MySQL? 如果您正在开发和测试,您真的需要使用MySQL吗? You can use sqlite which is bundled with Python. 您可以使用与Python捆绑在一起的sqlite。

As Vezu suggested, the best way to get started with the server is to download the binary installer - the mysql-5.5.24-osx10.6-x86.dmg file. 正如Vezu所建议的那样,开始使用服务器的最佳方法是下载二进制安装程序mysql-5.5.24-osx10.6-x86.dmg文件。

If you plan to use it with Python, you will also need to install MySQLdb for OSX. 如果计划将其与Python一起使用,则还需要安装MySQLdb for OSX。 For that, see this answer for a link to steps you need to follow. 为此,请参阅此答案以获取您需要遵循的步骤的链接。

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

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