MacPorts doesn't install org.macports.mysql5.plist with mysql5 +server

后端 未结 4 1723
独厮守ぢ
独厮守ぢ 2021-02-19 10:55

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, i

相关标签:
4条回答
  • 2021-02-19 11:24

    to install mysql correctly on macports: http://www.jasonrowland.com/2009/10/install-mysql5-on-snow-leopard-using-macports/

    0 讨论(0)
  • 2021-02-19 11:28

    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.

    0 讨论(0)
  • 2021-02-19 11:32

    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.

    0 讨论(0)
  • 2021-02-19 11:39

    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
    
    0 讨论(0)
提交回复
热议问题