• Mac mysql 5.7.x 设置服务开机自启动


    在终端输入

    sudo vi /Library/LaunchDaemons/com.mysql.mysql.plist

    输入以下内容

    <?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>  
        <key>KeepAlive</key>  
        <true/>  
        <key>Label</key>  
        <string>com.mysql.mysqld</string>  
        <key>ProgramArguments</key>  
        <array>  
        <string>/usr/local/mysql/bin/mysqld_safe</string>  
        <string>--user=root</string>  
        </array>    
      </dict>  
    </plist>

    启动

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

    查看启动状态

    ps -ef|grep mysql

    操作步骤

  • 相关阅读:
    MM and Desinger
    db subsequent and synchronization(transfer)
    Thread concepts
    Threads concepts
    lucene article
    primary key
    lucene
    page procedure
    connection pool
    page procedures
  • 原文地址:https://www.cnblogs.com/chenyanbin/p/14137117.html
Copyright © 2020-2023  润新知