MacPorts不会使用mysql5 + server安装org.macports.mysql5.plist [英] MacPorts doesn't install org.macports.mysql5.plist with mysql5 +server

查看:66
本文介绍了MacPorts不会使用mysql5 + server安装org.macports.mysql5.plist的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近两次我使用MacPorts安装mysql5 +server时,没有安装plist,这使我可以在启动MySQL时启动.我不记得在上次安装时做了什么(如果有的话),而且我似乎找不到找到安装它的方法.我想念什么吗?如何获得plist文件(我知道的唯一一种自动启动MySQL的方法)或以另一种方式自动启动MySQL?

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?

谢谢.

更新:我仍然在任何地方都找不到答案,但是我手动安装了文件.我的一台安装较旧的计算机上有相关文件,因此我将它们SCP装到我的新计算机上,在/Library/LaunchDaemons中创建了适当的符号链接,并执行了加载plist文件的命令.现在对我来说一切都很好,但这无济于事.如果有人需要这些文件和/或说明,请通过 http://robwilkerson.org/contact 与我联系,然后我会很乐意提供它们,因为我无法在此处上传它们.

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.

推荐答案

MacPorts中的mysql5 +server软件包变型已过时,并由mysql5-server软件包取代,除了mysql5之外,还要安装该软件包.这样一来,您便可以在事后进行编译,而不必使用+server重新编译整个mysql5软件包.

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.

我建议您删除旧的mysql5 +server,然后使用以下内容进行安装.

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

sudo port install mysql5-server

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

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.

这篇关于MacPorts不会使用mysql5 + server安装org.macports.mysql5.plist的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆