MacPorts 不安装 org.macports.mysql5.plist 和 mysql5 服务器
过去两次我使用 MacPorts 安装 mysql5 +server 时,未安装允许我在启动时启动 MySQL 的 plist。 我不记得上次安装时做了什么(如果有的话),而且我似乎找不到安装它的方法。 我错过了什么吗? 我怎样才能获取plist文件(我知道自动启动MySQL的唯一方法)或以其他方式自动启动MySQL?
谢谢。
更新:我仍然没有在任何地方找到答案,但我手动安装了这些文件。 我的一台旧安装的机器有相关文件,因此我将它们 SCP 到我的新机器,在 /Library/LaunchDaemons 中创建适当的符号链接,并执行命令来加载 plist 文件。 现在对我来说一切都很好,但这对其他人没有帮助。 如果有人需要这些文件和/或说明,请通过 http://robwilkerson.org/contact 与我联系,我'我很乐意提供它们,因为我无法将它们上传到这里。
The last two times I've used MacPorts to install mysql5 +server
, the plist isn't installed that allows me to have MySQL start on launch. I can't remember what, if anything, I did the on the last install and I can't seem to find a way to get it installed. Am I missing something? How can I either get the plist file (the only way I know of to start MySQL automatically) or start MySQL automatically in another way?
Thanks.
UPDATE: I still haven't found an answer anywhere, but I installed the files manually. One of my machines with an older install had the relevant files so I SCP'd them to my new machine, created the appropriate symlink in /Library/LaunchDaemons and executed the command to load the plist file. Everything's fine for me now, but that doesn't help anyone else. If anyone needs these files and/or instructions, contact me through http://robwilkerson.org/contact and I'll be happy to provide them since I can't upload them here.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
MacPorts 中的
mysql5 +server
软件包变体已过时,并被mysql5-server
软件包取代,您除了mysql5
之外还安装了该软件包。 这允许您在事后构建它,而不是使用+server
重新编译整个mysql5
包。我建议删除旧的
mysql5 +server
,然后使用以下命令进行安装。这将为您构建所需的
mysql5
和mysql5-server
软件包,并且您将在/Library/LaunchDaemons
中拥有 mysql5 plist 文件>。 另请注意,您不再需要将mysqld.sock
符号链接到/tmp/mysql.sock
。The
mysql5 +server
package variant in MacPorts is obsolete, and is superseded by themysql5-server
package, which you install in addition tomysql5
. This allows you to build it after the fact, instead of re-compiling the entiremysql5
package with+server
.I'd suggest to just remove your old
mysql5 +server
, and install using the following.That'll build both the required
mysql5
andmysql5-server
packages for you, and you'll have the mysql5 plist file in/Library/LaunchDaemons
. Also note that you no longer need to symlink yourmysqld.sock
to/tmp/mysql.sock
.要在 macports 上正确安装 mysql: http:// /www.jasonrowland.com/2009/10/install-mysql5-on-snow-leopard-using-macports/
to install mysql correctly on macports: http://www.jasonrowland.com/2009/10/install-mysql5-on-snow-leopard-using-macports/
是的,它是真实的。 许多现有的博客仍在使用过时的链接来安装mysql。
过时的 macport 命令行:
Yes it is true. Many existing blog are still using the out-dated link to install mysql.
Outdated macport command line:
正如我在上面的更新中提到的,我手动安装了这些文件。 据我所知,这些文件没有理由不存在,也没有人谈论它,所以我可能是唯一对此有疑问的人。 我自己使用安装时的旧套件修复了这个问题,并考虑到我收到的文件和说明请求数量,我决定将其写在博客上。
这篇文章提供了我的 plist 文件副本的链接以及安装它们的说明。 它位于 http://robwilkerson。 org/2009/07/16/macports-mysql-5-and-the-launch-daemons/。
更新:上面引用的文章已更新以引用 Mike 提供的解决方案。
As I mentioned in an update above, I installed the files manually. As far as I can tell, there's no reason that the files don't exist and no one is talking about it, so I may be the only one having an issue with this. Having fixed it for myself using an old set from when things did get installed and given the number of requests I received for the files and instructions, I decided to blog it.
The post provides links to a copy of my plist files and instructions for installing them. It's available at http://robwilkerson.org/2009/07/16/macports-mysql-5-and-the-launch-daemons/.
Update: The article referenced above has been updated to reference the solution offered by Mike.