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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:05:12
Original
903 people have browsed it

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

Related labels:
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
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
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