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

查看:511
本文介绍了如何在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.

推荐答案

在卡尔文答案(我想删除了吗?)和

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天全站免登陆