MySQL Server Status Problem in El Capitan
2016-09-08 14:31
309 查看
I surprisingly found out there is a piece of error dialogue while I opened my MAC today.
Like this,
Could not change automatic startup configuration.
SO, here is my solution of this issue
I had Written a plist script in location /Library/LaunchDaemons/
, and named it com.mysql.plist
This is the original code of automatically start MySQL Server
The path /usr/local/mysql/ insides the XML script is where MySQL path built-in El Capitan operation system of my MAC.
Finally, resourcing the script that you written in Terminal and reboot your computer.
simpler solution 2
The reason why MYSQL Server couldn’t automatically loading is that Apple abandoned the startup items, check this
A note at the start of the page in Apple’s docs explaining this
Like this,
Could not change automatic startup configuration.
SO, here is my solution of this issue
I had Written a plist script in location /Library/LaunchDaemons/
, and named it com.mysql.plist
This is the original code of automatically start MySQL Server
<?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>
The path /usr/local/mysql/ insides the XML script is where MySQL path built-in El Capitan operation system of my MAC.
Finally, resourcing the script that you written in Terminal and reboot your computer.
sudo chown root:wheel /Library/LaunchDaemons/com.mysql.plist sudo chmod 644 /Library/LaunchDaemons/com.mysql.plist sudo launchctl load -w /Library/LaunchDaemons/com.mysql.plist
simpler solution 2
#brew install mysql #unset TMPDIR #mysql_install_db --verbose --user='root' --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp #mysql.server start #cp cd /usr/local/Cellar/mysql/[version]/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/
The reason why MYSQL Server couldn’t automatically loading is that Apple abandoned the startup items, check this
A note at the start of the page in Apple’s docs explaining this
相关文章推荐
- java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for
- 创建存储过程错误(已解决):Error Code : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server ver
- mysql---Server Status Variables
- fedora开机出现There is a problem with the configuration server. (/usr/libexec/gconf-sanity-check-2 exited with status 256)
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- How to install Mysql in linux server
- MySQL Audit Plugin now available in Percona Server 5.5 and 5.6
- mysql/sqlserver where in 传参数的问题
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- windows下用Python连接mysql报错问题“MySQLdb in Python: “Can't connect to MySQL server on 'localhost'””
- The IN() operator is not a performance problem in MySQL but the equivalent OR is
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use
- mysql/sqlserver where in 传参数的问题
- Mysql 出现错误The server is not configured as slave; fix in config file or with CHANGE MASTER TO
- A Security Problem Caused by xp_cmdshell in SQL Server.
- Problem in connecting VS 2005 to SQL Server 2008
- Installing MySQL server in linux command
- Problem getting wireless networking to work in Windoes Server 2008R2
- SQL Error: 1064, SQLState: 42000 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server ve