如何在 Mac OS X 上启动 MariaDB? [英] How do I start MariaDB on boot on Mac OS X?

查看:47
本文介绍了如何在 Mac OS X 上启动 MariaDB?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚安装了 MariaDB(带有自制软件).一切看起来都在工作,但我不知道如何让它在我的 Mac 上启动时自动启动.我找不到任何 Mac 专用文档.

Just installed MariaDB (with homebrew). Everything looks like it's working, but I can't figure out how to have it automatically startup on boot on my Mac. I can't find any Mac-specific docs for this.

安装输出显示:

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

我想我不知道正确的地方在哪里.

I guess I don't know where the right place is.

推荐答案

借助 Calvin 的回答(我猜是删除了?)和 这个页面,这些是我用来完成这个的步骤:

With help from Calvin's answer (deleted, I guess?), and this page, these are the steps I used to accomplish this:

cp /usr/local/Cellar/mariadb/5.5.30/homebrew.mxcl.mariadb.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mariadb.plist

在下次启动时,MariaDB 已启动并运行.

On next boot, MariaDB was up and running.

这篇关于如何在 Mac OS X 上启动 MariaDB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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