Home > Database > Mysql Tutorial > MAC系统中添加MYSQL开机启动的方法

MAC系统中添加MYSQL开机启动的方法

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:27:45
Original
908 people have browsed it

1.添加文件 touch /Library/LaunchDaemons/com.mysql.mysql.plist 2.添加内容 xml version="1.0" encoding="UTF-8" !DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd" plist version="1.0" dict keyKe

1.添加文件


touch
/Library/LaunchDaemons/com.mysql.mysql.plist


2.添加内容


 
 
 
   
    KeepAlive 
     
    Label 
    com.mysql.mysqld 
    ProgramArguments 
     
    /usr/local/mysql/bin/mysqld_safe 
    --user=root 
   
   
 
 
 


3.添加后重启


sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysql.plist

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
mac use
From 1970-01-01 08:00:00
0
0
0
How to install it on Mac?
From 1970-01-01 08:00:00
0
0
0
Why doesn’t Mac have PHPstudy?
From 1970-01-01 08:00:00
0
0
0
When will phpstudy release a mac version?
From 1970-01-01 08:00:00
0
0
0
Where is the telnet option on mac computer?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template