MacPorts 不安装 org.macports.mysql5.plist 和 mysql5 服务器

发布于 2024-07-26 07:02:39 字数 510 浏览 1 评论 0原文

过去两次我使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

泪眸﹌ 2024-08-02 07:02:39

MacPorts 中的 mysql5 +server 软件包变体已过时,并被 mysql5-server 软件包取代,您除了 mysql5 之外还安装了该软件包。 这允许您在事后构建它,而不是使用 +server 重新编译整个 mysql5 包。

我建议删除旧的 mysql5 +server,然后使用以下命令进行安装。

sudo port install mysql5-server

这将为您构建所需的 mysql5mysql5-server 软件包,并且您将在 /Library/LaunchDaemons 中拥有 mysql5 plist 文件>。 另请注意,您不再需要将 mysqld.sock 符号链接到 /tmp/mysql.sock

The mysql5 +server package variant in MacPorts is obsolete, and is superseded by the mysql5-server package, which you install in addition to mysql5. This allows you to build it after the fact, instead of re-compiling the entire mysql5 package with +server.

I'd suggest to just remove your old mysql5 +server, and install using the following.

sudo port install mysql5-server

That'll build both the required mysql5 and mysql5-server packages for you, and you'll have the mysql5 plist file in /Library/LaunchDaemons. Also note that you no longer need to symlink your mysqld.sock to /tmp/mysql.sock.

陈甜 2024-08-02 07:02:39

是的,它是真实的。 许多现有的博客仍在使用过时的链接来安装mysql。

过时的 macport 命令行:

$ sudo port install mysql5 +server

Yes it is true. Many existing blog are still using the out-dated link to install mysql.

Outdated macport command line:

$ sudo port install mysql5 +server
黯然#的苍凉 2024-08-02 07:02:39

正如我在上面的更新中提到的,我手动安装了这些文件。 据我所知,这些文件没有理由不存在,也没有人谈论它,所以我可能是唯一对此有疑问的人。 我自己使用安装时的旧套件修复了这个问题,并考虑到我收到的文件和说明请求数量,我决定将其写在博客上。

这篇文章提供了我的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文