방금 mac OS x에 xampp를 설치했습니다. mysql을 시작하려고하면 다음과 같은 메시지가 표시됩니다 mysql is already running on this computer. In order to start mysql stop first mysql
. 나는 그것을 막기 위해 다음과 같은 방법을 시도했지만 둘 다 작동하지 않습니다.
mysqladmin version
sudo /usr/local/mysql/mysql.server stop //mysql.server command not found
mysqladmin -u root -p password shutdown //restarts the server but not shutdown
내가 which mysql
명령을 사용할 때이 경로를 보여줍니다
/usr/local/bin/mysql
내가 발행 할 때 ps aux | grep mysqld
명령을 나는 다음과 같은 출력을 얻을
zafarsaleem 85209 0.0 0.3 2699804 13204 ?? S 7:51AM 0:00.88 /Applications/MAMP/Library/bin/mysqld --basedir=/Applications/MAMP/Library --datadir=/Applications/MAMP/db/mysql --plugin-dir=/Applications/MAMP/Library/lib/plugin --lower-case-table-names=0 --log-error=/Applications/MAMP/logs/mysql_error_log.err --pid-file=/Applications/MAMP/tmp/mysql/mysql.pid --socket=/Applications/MAMP/tmp/mysql/mysql.sock --port=8889
zafarsaleem 85093 0.0 0.0 2435488 924 ?? S 7:51AM 0:00.03 /bin/sh /Applications/MAMP/Library/bin/mysqld_safe --port=8889 --socket=/Applications/MAMP/tmp/mysql/mysql.sock --lower_case_table_names=0 --pid-file=/Applications/MAMP/tmp/mysql/mysql.pid --log-error=/Applications/MAMP/logs/mysql_error_log
zafarsaleem 86693 0.0 0.0 2425480 180 s004 R+ 8:30AM 0:00.00 grep mysqld
zafarsaleem 86507 0.0 0.3 2678756 11364 ?? S 8:07AM 0:00.63 /usr/local/Cellar/mysql/5.5.20/bin/mysqld --basedir=/usr/local/Cellar/mysql/5.5.20 --datadir=/usr/local/var/mysql --plugin-dir=/usr/local/Cellar/mysql/5.5.20/lib/plugin --max-allowed-packet=32M --log-error=/usr/local/var/mysql/Zafars-MacBook-Pro-2.local.err --pid-file=/usr/local/var/mysql/Zafars-MacBook-Pro-2.local.pid
zafarsaleem 86447 0.0 0.0 2435488 920 ?? S 8:07AM 0:00.02 /bin/sh /usr/local/bin/mysqld_safe --max_allowed_packet=32M
이 문제를 어떻게 해결할 수 있습니까?
최신 정보
이 명령 launchctl list
을 실행 하면 다음과 같이 목록에 mysqld가 표시됩니다.
com.apple.AddressBook.SourceSync
- 0 com.apple.AddressBook.abd
1201 - homebrew.mxcl.mysql <--
443 - homebrew.mxcl.mongodb
- 0 com.google.keystone.user.agent
- 0 com.adobe.ARM.df0ab5bbe6f698196fcc21e3c1e66dcb758bd911f4d637272d9d8109
- 0 com.adobe.AAM.Scheduler-1.0
45 - 0x7fd1bba073e0.anonymous.loginwindow
- 1 com.apple.launchctl.Aqua
1261 - 0x7fd1bba0c6e0.anonymous.mysqld <--
212 - 0x7fd1ba5206d0.anonymous.launchd
230 - 0x7fd1ba5203d0.anonymous.Terminal
두 번째로 @PunjCoder에서 언급 한대로 아래 명령을 발행하려고했을 때
sudo launchctl unload -w /Library/LaunchDaemons/org.macports.mysql.plist
OUTPUT for above is:
launchctl: Couldn't stat("/Library/LaunchDaemons/org.macports.mysql.plist"): No such file or directory
nothing found to unload
sudo launchctl unload -w /System/Library/LaunchDaemons/org.macports.mysql.plist
OUTPUT for above is:
launchctl: Couldn't stat("/System/Library/LaunchDaemons/org.macports.mysql.plist"): No such file or directory
nothing found to unload
그래서 어떻게 막을 수 있습니까? Mac OS X를 처음 사용 하므로이 문제를 해결하는 방법을 모릅니다. 도와주세요...